Yes, that worked. Thanks for the help. The code I ended up using is like
the following:
HttpMethod method = new PostMethod(url.getPath());
method.setRequestHeader("User-agent", "Mozilla/4.0 (compatible; MSIE
5.5; Windows NT 5.0; IPS Prod 4 W2K)");
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 1:43 AM
To: Jakarta Commons Users List
Subject: RE: HTTP Post with cookie
> Since I'm not at work at the moment, I cannot say it without doubt, but I
> think the method you look for is called "setRequestProperty()".
> I'll respond again tomorrow, when I can say this definitly ;-)
Sorry, I was wrong ... what you need is "setRequestHeader".
Assuming you use a post-method, your code could be someting like:
PostMethod post = new PostMethod();
post.setRequestHeader("User-Agent", "MSIE blablabla");
// Don't know that exact header IE sends ;-)
HTH
Thilo
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>