• Post Reply Bookmark Topic Watch Topic
  • New Topic

regarding Redirects  RSS feed

 
Krishna Bulusu
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
sorry if it is wrong place for this post..

i am facing a serious problem....

i am using HttpClient inorder to get the response from a website. But that website is useing redirects...that means..when i open it browser some four to five redirects r teking place and then the required response is coming....
if i try the same from HttpClient.....i am getting the first redirect as the response....in that response there is link saying that "click here to continue"..i am extracting that link and again request for the responce.....after getting these knid of responses..i am again getting the first page(logn page)......

can anybody help me in this??


thanks in advance!!

regards

krishna.
 
Martin Simons
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try the info here, if you mean the apache commons httpclient:

http://jakarta.apache.org/commons/httpclient/redirects.html
 
Krishna Bulusu
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank u martin..
but here the problem is i am getting null when tried to print the redirects....
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!