Hi Shingo, Thanks for this suggestion. I've added a link to your email in the related RFE:
"Add parameters for proxies in HTTP clients" http://restlet.tigris.org/issues/show_bug.cgi?id=317 Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -----Message d'origine----- De : Shingo Omura [mailto:omura_shi...@ogis-ri.co.jp] Envoyé : lundi 6 avril 2009 07:14 À : discuss@restlet.tigris.org Objet : Re: Use a proxy server with a Client? Hi, all. My name is Shingo Omura, newbie for restlet. Avi Flax wrote on 2008-06-12 23:49:07 PDT: > A method like void setUseProxy(String host, int port) would make sense > to me. I agree with that. So, I modify the source of org.restlet.Client so that Client can have void setProxy(String host, String port) and can access through proxy server. I send a patch file and the original Client.java (attached). Best Regards, -- Shingo Omura omura_shi...@ogis-ri.co.jp OGIS-RI, CO., LTD. > Rob, thank you for the thorough and informative answer! I really appreciate it. > > The system properties approach for the Net connector will suffice for > me for now, but I really think this ought to be available via the > Client API. A method like void setUseProxy(String host, int port) > would make sense to me. > > Thanks again! > Avi > > On Thu, Jun 12, 2008 at 10:54 PM, Rob Heittman > <rob.heitt...@solertium.com> wrote: > > > > Thara S had an open question about this in another thread. I think > > the answer is here: > > > > http://restlet.tigris.org/issues/show_bug.cgi?id=317 > > > > For the Net connector you ought to be able to use the common idiom > > of setting the system properties http.proxyHost and http.proxyPort. > > > > This idiom does not work with the Apache HttpClient connector anyway. Steve > > Loughran went to big lengths to fix this > > here: http://jira.smartfrog.org/jira/browse/SFOS-629 and he also contributed > > some ideas to the bug report. I'd rather set properties on the > > client context, like configuring server properties, though ... > > If enough people think this is a big deal, I'm happy to propose a patch and > > see if Jerome's willing to bump it earlier. > > - R > > On Thu, Jun 12, 2008 at 6:55 PM, Avi Flax <a...@arc90.com> wrote: > >> > >> Hi all, does anyone know of a way to have a Client use a proxy > >> server when making a request? ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=15584 31 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1593795