I'm using Restlet 2.1m3 in Tomcat 6.0.32 with JDK 1.6.0_24 on Linux.

I'm trying to pass along the X-Forwarded-For header in my 
redirectSeeOther(String) call.  Is this possible?

getResponse().getAttributes().put("org.restlet.http.headers", new 
Form("X-Forwarded-For=192.168.1.1")) followed by 
getResponse().redirectSeeOther("http:....") doesn't do the trick.  I 
know the getForwardedAddresses() in the ClientInfo contains this 
information, but is there a way to pass it through the Response so that 
the Location Ref Resource will be able to pull it out?

I tried setting it in the 
getResponse().getRequest().getClientInfo().setForwardedAddresses() as 
well but it did not work either.

Thanks,
Dustin

-- 


Dustin N. Jenkins | Tel/Tél: 250.363.3101 | [email protected]

facsimile/télécopieur: (250) 363-0045

National Research Council Canada | 5071 West Saanich Rd, Victoria BC. 
V9E 2E7

Conseil national de recherches Canada | 5071, ch. West Saanich, Victoria 
(C.-B) V9E 2E7

Government of Canada | Gouvernement du Canada

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

Reply via email to