Hello there,
I'm new to restlet and I'm using restlet 1.0 now.
I'm trying to do a client request through the proxyserver, I tried the
following ways but they don't work.
this is one thing I tried (this kind of followed the sample from the
document restlet 1.0- First resource - the client application):
Client client = new Client(Protocol.HTTP);
System.setProperty("http.proxyHost","myhostname");
System.setProperty("http.proxyPort","80");
Reference itemsUri1 = new Reference( mytesturl);
...
get(client, itemsUri1);
and then I tried another way:
Client client = new Client(Protocol.HTTP);
client.getContext().getParameters().add("http.proxyHost" ,"myhostname");
client.getContext().getParameters().add("http.proxyPort" ,"80");
....
get(client, itemsUri1);
They don't work. There must be something I missed. Can anyone help me out?
If I have to use the new release Version 1.1 M4, I can try it.
Thanks, Helen