Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Oct : 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: | Tue, 16 Oct 2007 14:50:59 |
>> I can not find any stream object holding the webpage
>> content.
> The EIdHTTPProtocolException.ErrorMessage property holds the page data as
> a String, not a Stream.
It seems you are correct. I am not sure I
understand why ErrorMessage is used for
that, but I guess you have had your reasons.
So the page data is still raw I suppose?
(Just stored in AnsiString instead of Stream)
So I just write the whole content into stream...
And it is business as usual from that point on.
(On the stream I check HTTP headers, meta tag
HTTP equalants, BOM etc. myself to detect e.g.
UTF-8 and UTF-16 so I can convert properly)
Thanks for the help
best regards
Thomas Schulz