Hi all,
I'm looking for a possibility to easily use proxy support for Client HTTP calls 
with Restlet. The "normal" approach using

System.setProperty("http.proxyHost","proxy");                   
System.setProperty("http.proxyPort","8080");

does not work. I already searched this discussion board and came to the 
conclusion that it's not yet officially supported by Restlet. However, I 
figured out that some people were able to use a proxy by using the Net 
Connector. However, I have no idea how to do that. I receive the following 
error message:

WARNING: An error occured during the communication with the remote HTTP server.
java.net.UnknownHostException: google.com
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.<init>(Unknown Source)
        at java.net.Socket.<init>(Unknown Source)
        at 
com.noelios.restlet.http.StreamClientCall.createSocket(StreamClientCall.java:148)
        at 
com.noelios.restlet.http.StreamClientCall.sendRequest(StreamClientCall.java:316)
        at 
com.noelios.restlet.http.HttpClientConverter.commit(HttpClientConverter.java:418)
        at 
com.noelios.restlet.http.HttpClientHelper.handle(HttpClientHelper.java:108)
        at org.restlet.Client.handle(Client.java:157)
        at org.restlet.Uniform.handle(Uniform.java:108)

Because the stack trace clearly shows the usage of java.net.* classes, I 
suppose I already use the Net Connector. Is this right? What am I doing wrong 
then?

Thank you very much and keep up the great work.

Simon

P.S. I don't know whether I am simply too silly to find good information on 
Restlet, but I have problems to find documentation (besides the tutorial and 
everything else which is linked on the homepage). Additionally, the wiki does 
not seems to be very active. Is there any further & up-to-date documentation 
besides the Java API doc and the already mentioned resources? I would prefer to 
read some general information about the Restlet components. Thanks in advance.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2230942

Reply via email to