Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Oct : Re: Delphi2007, Indy10, TidHttp, site returns 500 but has content

www.cryer.info
Managed Newsgroup Archive

Re: Delphi2007, Indy10, TidHttp, site returns 500 but has content

Subject:Re: Delphi2007, Indy10, TidHttp, site returns 500 but has content
Posted by:"dk_sz" (dk_..@hotmail.com)
Date:Mon, 15 Oct 2007 03:17:31

>> If website returns reponse code 500, an exception
>> is thrown, and there is no way to get content.

> The Result stream holds the text but you have to
> reset the Result.Position := 0;
> in order to read it from the stream again.

If it was just that easy :)
The Result stream does not hold the text.

The *Size* property of the Result stream is 0
The *Position* property of the Result stream is 0

I can tell you what I think. I think that when TidHTTP
receives server response code 500 (which is "internal
server error") in response headers, it does not expect
to receive any actual content and therefore drops trying.

Infact, a quick search on usenet shows other
people have suffered from the same problem,
but no solution have appeared.


best regards
Thomas Schulz

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive