Possible Duplicate:
How to prevent apache http client from following a redirect
I am making a request using httpclient and after receiving the response, I get automatically redirected to another page. How can I stop this from happening?
Here are some more details:
I am trying to get a token from Google using oAuth2.0. I make the request for the token from the server using httpclient, but because of the redirect_uri
I get somehow redirected. How can I stop this?