Hello Mike, in this case the client connector must configured using the "proxyHost" and "proxyPort" context parameters. You can have a look at this page : http://wiki.restlet.org/docs_2.0/13-restlet/37-restlet.html, especially the part that concerns the configuration of client connectors.
Best regards, Thierry Boileau I'd like to configure a simple restlet client (such as the following) to use > a proxy so that I can use the Charles web debugger with it: > > public class MyJSEClient { > public static void main( String[] args ) throws Exception { > ClientResource res = new ClientResource( "http://myServerIP:8111/" ); > Representation rep = res.get(); > try { > System.out.println( rep.getText() ); > } catch ( Exception ex ) { > System.out.println( "Exception: " + ex.getMessage() ); > } > } > } > > I'd like to configure the client to use http://myServerIP:8888 as a proxy, > since Charles is running on the same machine as the RESTful server and is > listening on port 8888. > > Any idea how to do this? > > Thx! > > Mike. > > -- > View this message in context: > http://restlet-discuss.1400322.n2.nabble.com/Configure-a-restlet-client-to-use-a-proxy-tp6400794p6400794.html > Sent from the Restlet Discuss mailing list archive at Nabble.com. > > ------------------------------------------------------ > > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2747085 > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2752324