hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From esu2 <johnzhang...@hotmail.com>
Subject authentication fail, how do I get redirect URL?
Date Sat, 14 Mar 2009 20:28:15 GMT

I'm using HTTPClient to access a single sign on page. I post request to
login form with wrong password, I got http response status = 401
(authentication fail). I think this make sense.

However, I do the same thing in Firefox and watch the headers, above request
result in 302 response and redirect to a "login fail" page.

My question is how to mimic this behivior in HTTPClient. in HTTPClient, I
don't get 302. therefore, I'm not able to get the URL of "login fail" page.

View this message in context: http://www.nabble.com/authentication-fail%2C-how-do-I-get-redirect-URL--tp22516724p22516724.html
Sent from the HttpClient-User mailing list archive at Nabble.com.

To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org

View raw message