This question is in response to the following post:

http://marc.info/?l=httpclient-users&m=121147890106497&w=2

This message describes the appropriate way to determine where an http
request was redirected.

It seems that this code does not function properly when going through a proxy.

I've attached example code.

To demonstrate, run the example.  You see that "http://www.google.com";
correctly gets redirected to "http://www.google.com/"; (notice the
trailing slash).

Now, edit redirect.java.  Change line 28 to "if (true)" and change
line 30 to use your proxy host.  Then re-run the example.

When I do this, I get the following output:

ResolvedURL=http://www.google.comhttp://www.google.com

Any ideas why this is happening?  Do I need different logic to
determine the redirect url when going through a proxy?

Thanks!
Stuart

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to