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:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Mon, 15 Oct 2007 12:19:43

"Dennis Passmore" <somewhere@someplace.com> wrote in message
news:acs4h39812ogrrndai199sj7b65skd28nf@4ax.com...

> The Result stream holds the text

It won't if an HTTP error occurs.  TIdHTTP will temporarily replace the
user's stream with its own stream that is created internally, then read the
error data into that temp stream and construct the EIdHTTPProtocolException
content from it, then finally replace the temp stream with the user's
original stream.  So the user's stream gets contents only when no HTTP error
occurs.


Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive