Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on redirects and multiple hops

Janaki Raju
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Here is my situation.

1. I post a request on a url using PostMethod.

2. I get a response back which is 200 OK.

3. However, the response body does not have the text that I am looking for.

4. I debug using Fiddler 2 and and it shows me that when I post the first url, it in turn posts to another url which then finally posts back to the same url as in step 1 (where I started). The final request url (which is the same as the one I started with) has the response that I need.

My question is how do I get to this final response ? I don't get any redirect status codes, only success code 200; can I still use setFollowRedirects(true) ?

I looked at the header of the first response to see if there is any redirect url location and there was none.

My webserver is IIS 6. Is there any way I can turn off these multiple hops in the webserver ?

Any help will be greatly appreciated.

[ June 26, 2008: Message edited by: Janaki Raju ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic