Whenever I use the following code, the webserver (running IIS 7) refuses to send me content, but sends a "400 Bad Request" instead.
request.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
Whenever I use the following code, the webserver (running IIS 7) refuses to send me content, but sends a "400 Bad Request" instead.
request.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
Share
Improve this question
edited Feb 24, 2014 at 13:21
asked Mar 25, 2010 at 16:13
user215361user215361
1 Answer
Reset to default 10Apparently many people are having this problem, and it can easily be fixed by prefixing the date with a 0.
request.setRequestHeader("If-Modified-Since", "Sat, 01 Jan 2000 00:00:00 GMT");