Hello there,
I'm new to restlet and I'm using version 1.0. I'm trying to make a client
request through the proxy server. And since this is the first time for me to
write code using restlet framework, I followed the the tutorial Restlet 1.0 -
First resource to do it. But I tried some ways and I could not make the client
request through our proxy server.
I searched around and found that there is an issue logged for restlet
regarding the proxyserver: http://restlet.tigris.org/issues/show_bug.cgi?id=317
>From this logged issue, does this mean that unless using JDK net connector
there is no way to make client request through proxyserver? And can anyone show
me how to make a client PUT request using JDK net connector?
Thanks, Helen
>>> "Helen Chen" <[EMAIL PROTECTED]> 07/11/08 11:21 AM >>>
Hi Thierry,
I followed the sample client code from document Restlet 1.0 - First resource,
and the following are the jar files in my classpath when I run the client
code,
so I think I'm using apache commons http client connector.
Do you know how I can make it work to go through the proxyserver? Or do you
have any suggestions on it?
Thanks, Helen
>>> Thierry Boileau <[EMAIL PROTECTED]> 07/11/08 3:26 AM >>>
Hello Helen,
what kind of client connector are you using? These parameters apply only
with the JDK client, that is to say the "net" connector.
best regards,
Thierry Boileau
> 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
>
>