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:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Thu, 21 Dec 2006 14:35:46

"dk_sz" <dk_sz@hotmail.com> wrote in message
news:458a7d3c$1@newsgroups.borland.com...

> Does Indy default to 404 if the response
> code is not found in returned headers?

No.  It defaults to -1.

> The image in question returns this on *HEAD*

You did not show the actual HEAD request or the first response line before
the headers.

> When doing a GET, it actually is and shows as an image.

Again, you need to show the actual request and response.  There is no way to
diagnose your problem with the limited information you have provided.

> Also, when doing a GET with Indy, response is 200 instead

As it should be.


Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive