0

I'm using ISAPI htaccess rule on my website.

I opened fiddler and saw an ajax post request with content in its body.

then the client got 302 redirect (htaccess rule),

but this second request was sent with no body content.

How can it be?

Elad Benda
  • 35,076
  • 87
  • 265
  • 471

1 Answers1

0

You are correct, per the W3 Spec there should be a body unless it is a HEAD request

The temporary URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s).

However, there are webservers that do not implement the spec correctly e.g https://issues.apache.org/bugzilla/show_bug.cgi?id=41718, so it could very well be an instance of this

Ulrich Palha
  • 9,411
  • 3
  • 25
  • 31
  • @EladBenda If you own the client code, then as long as the location header is sent, you can process the 302 i.e. if you own the client then the body is not necessary – Ulrich Palha Jan 05 '12 at 22:45
  • Didn't fully understand you. sorry. if I remove the [R=302] will it work? – Elad Benda Jan 05 '12 at 23:43