hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "shyam" <sh...@iris-llc.com>
Subject RE: CircularRedirectException: Circular redirect to
Date Mon, 12 Jan 2009 12:04:51 GMT
Hi Oleg,

Thank you very much for your reply.

I solved the Circular Redirect issue by setting the setFollowRedirect of
HTTPMETHOD to false.

Now I am able to get the inside page.

But when I try to get a link in that page, it is redirecting abnormally.
And I am getting the the same index page again and again.

I think I am setting the Cookies correctly.
Please Help me, I am stuck here.
I am attaching the Wire Log.

Thanks for reading.
Regards,
Shyam

-----Original Message-----
From: Oleg Kalnichevski [mailto:olegk@apache.org] 
Sent: Saturday, January 10, 2009 6:38 PM
To: HttpClient User Discussion
Subject: Re: CircularRedirectException: Circular redirect to

shyam wrote:
> Hi All,
> 
>  
> 
> I am trying to execute a Post method to login using Username and Password
to
> a site, using HttpClient.
> 
>  
> 
> I am getting status 301 object moved permanently.
> 
>  
> 
> Then when I try to execute Get method on the Location, It is showing the
> following exception:-
> 
>  
> 
> org.apache.commons.httpclient.CircularRedirectException: Circular redirect
> to'
> 
>  
> 
>  
> 
> Can you please tell me why this is happening?
> 
>  

Post a complete wire / context log of the session

http://hc.apache.org/httpclient-3.x/logging.html

Oleg



> 
> How can I correct this?
> 
>  
> 
> Thanks & Regards
> 
>  
> 
> Shyam
> 
>  
> 
> 


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

Mime
View raw message