RE: Running a simple example

2006-10-23 Thread Jerome Louvel
alHost classes and NRE's CallModel, HttpCall, HttpServerCall classes. Best regards, Jerome > -Message d'origine- > De : Piyush Purang [mailto:[EMAIL PROTECTED] > Envoyé : jeudi 19 octobre 2006 20:29 > À : discuss@restlet.tigris.org > Objet : Re: Running a simpl

Re: Running a simple example

2006-10-19 Thread Piyush Purang
thanks that explains it ...and so does the result.getAllowedNames().add("127.0.0.1"); in the static method createLocalHost

RE: Running a simple example

2006-10-19 Thread Jerome Louvel
Hi Pyiush, > I added this line > > host.getAllowedNames().add("localhost"); > > > and now my url > > localhost:8182/something works > > but > > 127.0.0.1:8182/something doesn't work [...] > Could you answer: why didn't the first one work for the > 127.0.0.1 url?

Re: Running a simple example

2006-10-19 Thread Piyush Purang
Hi Jerome, I added this line host.getAllowedNames().add("localhost"); and now my url localhost:8182/something works but 127.0.0.1:8182/something doesn't work Using getDefaultHost() and then attaching the target works fine in both the cases. And when I do VirtualHost h

RE: Running a simple example

2006-10-19 Thread Jerome Louvel
Hi Pyiush, Your virtual host doesn't allow any domain names. That's why it fails. Use VirtualHost.getAllowedNames(); You can also use container.getDefaultHost().attach() directly if you prefer, it is setup to accept all requests. Best regards, Jerome > -Message d'origine- > De : Piyu