Hi Alejandro,
The org.restlet.ext.net connector only allows a system wide proxy setting. In other case, you can use several instances of the Apache HTTP Client or of the internal HTTP client and configure their “proxyHost” and “proxyPort” parameters: http://www.restlet.org/documentation/2.0/jse/engine/org/restlet/engine/http/connector/BaseClientHelper.html http://www.restlet.org/documentation/snapshot/jee/ext/org/restlet/ext/httpclient/HttpClientHelper.html Best regards, Jerome -- Restlet ~ Founder and Technical Lead ~ <http://www.restlet.org/> http://www.restlet.org Noelios Technologies ~ <http://www.noelios.com/> http://www.noelios.com De : Alejandro Raiczyk [mailto:araic...@gmail.com] Envoyé : mercredi 7 juillet 2010 06:02 À : discuss@restlet.tigris.org Objet : Re: Mention proxy in tutorial What about proxy authentication? The only way to setup a proxy is using system properties? Can't it be done programatically? I know I could set the system properties programatically, but what if I don't want other classes running in the same vm use the value of those system properties? 2010/6/18 Jerome Louvel <jerome.lou...@noelios.com> Hi John, We are refactoring the documentation for Restlet Framework 2.0.0 release. Here is the new table of contents: http://www.restlet.org/documentation/2.0/ This user guide includes a "First client" example: http://wiki.restlet.org/docs_2.0/13-restlet/21-restlet/318-restlet/320-restl <http://wiki.restlet.org/docs_2.0/13-restlet/21-restlet/318-restlet/320-restl%0Aet.html> et.html It now contains a warning about running behind a HTTP proxy, which leads to this page on the "Net" extension and the arguments to be passed on the command line as you suggested: http://wiki.restlet.org/docs_2.0/13-restlet/28-restlet/79-restlet.html Hope this looks better. Best regards, Jerome Louvel -- Restlet ~ Founder and Technical Lead ~ http://www.restlet.org Noelios Technologies ~ http://www.noelios.com -----Message d'origine----- De: John Simmons [mailto:drjwsimm...@yahoo.com] Envoy頺 vendredi 14 mai 2010 00:50 : discuss@restlet.tigris.org Objet: Mention proxy in tutorial I am just learning Restlet and trying the examples given in the tutorial. I am working from behind a corporate firewall. I was not able to get the first example Part02a to work until I discovered, by searching the source code, that I needed to set two system properties by putting arguments like this on the java command line: -Dhttp.proxyHost=myproxyhost -Dhttp.proxyPort=3128 To help new users, I suggest that the tutorial should mention this. It would also be helpful to mention it in the javadoc, say for class ClientResource. Thanks, John ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447 <http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=26087> &dsMessageId=26087 89 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447 <http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2623461> &dsMessageId=2623461 -- Alejandro DamiᮠRaiczyk ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2659967