Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Dec : Re: HEAD gives 404 ... GET gives 200

www.cryer.info
Managed Newsgroup Archive

Re: HEAD gives 404 ... GET gives 200

Subject:Re: HEAD gives 404 ... GET gives 200
Posted by:"Stig Johansen" (a..@bbb.com)
Date:Fri, 22 Dec 2006 07:05:07

dk_sz wrote:

> Does Indy default to 404 if the response
> code is not found in returned headers?
>
>
> The image in question returns this on *HEAD*
>
> Connection=Keep-Alive
> Content-Length=2326
> Date=Thu, 21 Dec 2006 12:18:32 GMT
> Content-Type=text/html; charset=utf-8
> Server=Microsoft-IIS/6.0
> X-Powered-By=ASP.NET
> X-AspNet-Version=1.1.4322
> Cache-Control=private
>
> And yes... I wrote image :-)
>
> When doing a GET, it actually is and shows as an image.
> (Also, when doing a GET with Indy, response is 200 instead)

I'm not sure if it is the same issue, but we had a discussion[1] in the
danish group:
dk.edb.internet.webdesign
about IIS returning 403 on HEAD and 200 on GET.

This was on SSI doc's though.
Maybe IIS returns 404 on CGI's/ISAPI's?

[1] See (in danish)
<http://groups.google.com/group/dk.edb.internet.webdesign/browse_frm/thread/995f4f360f7319dd/e8dfffb3a99b387a?lnk=st&q=head+404+dk.edb.internet.webdesign&rnum=1#e8dfffb3a99b387a>


--
Best regards
Stig Johansen

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive