users@jersey.java.net

[Jersey] Problems with setting requestheaders

From: tmp <le_tmp_at_gmx.de>
Date: Mon, 20 Dec 2010 05:31:30 -0800 (PST)

I have some problems with this code:
http://pastebin.com/XXayEPui

1) When this method creates a new request to a given url, I want to set all
headers and queryparameters from the clientrequest. Did I do this correctly?

2) When I create a request for the url "www.imdb.com", the response from
imdb is "your browser or proxy server isn't identifying itself and is
blocked because we don't trust it to behave. If your browser/proxy/agent
does not send a HTTP User-Agent header, this server will reject the
request."
As you can see in the code, I already added a proxy-agent to the webresource
header and I also tried to set the user-agent header manually, but it
doesn't work. Do you have any ideas?

Thank you!
-- 
View this message in context: http://jersey.576304.n2.nabble.com/Problems-with-setting-requestheaders-tp5850786p5850786.html
Sent from the Jersey mailing list archive at Nabble.com.