Hello,

you can find more informations about connectors and how to set 
parameters at this URL:
http://wiki.restlet.org/docs_1.1/13-restlet/27-restlet/37-restlet.html

that is to say:
        Client client = new Client(Protocol.HTTP);
        // in case the client's context is null
        //client.setContext(new Context());
        client.getContext().getParameters().add("followRedirects", "true");

Best regards,
Thierry Boileau

> Hi there,
>
> I've been trying to get HttpClientHelper to automatically follow redirects, 
> but can't for the life of me get it to work.  At the moment I'm using 
> HttpClientHelper.getHelpedParameters() and trying to set the 
> 'followRedirects' parameter to 'true' that way.  Would it be possible for 
> someone to provide brief example code showing the correct method?  It would 
> be much appreciated!
>
> cheers,
> Nick
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1193306
>
>

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

Reply via email to