Hi there,

You should look at the Redirector class in Restlet which allows you to relay
requests from the client to the server (reverse proxy). Use the
MODE_CLIENT_DISPATCHER mode. You can use the default HTTP client from
Restlet or the org.restlet.ext.httpclient (Apache HTTP Client) or
org.restlet.ext.net (JDK's HttpURLConnection).

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com



2010/1/5 <[email protected]>

> I want to do the following:
>
> The client specifies an url and submits it to the server. Now the server
> downloads the complete page (with images,..) and makes it available to the
> client (+ some additional information).
>
> How would you do that? Should I use the included apache httpclient? I would
> prefer to run it inside a j2ee webapplication.
>
> Thank you very much!
>
> ------------------------------------------------------
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2435026
>

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

Reply via email to