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:Sun, 14 Oct 2007 07:10:44

> Response.ContentStream property.  So you are copying an empty TStream back
> into itself.

Indeed, just trying to figure out where I can
get the body content response that is sent!
(Even though the server returns response code 500)


> To access the real error data, you need to catch an
> EIdHTTPProtocolException
> exception and then read its ErrorMessage property.  For example:

> Yes, there is.  You are simply looking in the wrong place for it.

>        on E: EIdHTTPProtocolException do
>        begin
>            // use E.ErrorCode, E.Message, and E.ErrorMessage properties as

OK, thanks for the info! I did not think that the body
content stream of the website would be returned in
the exception object, but I will try look! Thanks!


best regards
Thomas Schulz

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive