Re: idHTTP1 message response.

Giganews Newsgroups
Subject: Re: idHTTP1 message response.
Posted by:  Remy Lebeau (TeamB) (
Date: Fri, 7 May 2004

"Alan" <AllanlRemhe…> wrote in message

> Does anyone know how I access this response text.
> I thought it would be idHTTP1.responsetext, but this
> returns - 'HTTP/1.1 200 OK'

ResponseText is the proper value to look at, you will just have to parse it
manually, though.  You can use Indy's Fetch() function to help you, for

    S := IdHTTP1.ResponseText;
    Fetch(S);    // strip off the HTTP version.
    S := Trim(S);
    Fetch(S);    // strip off the response code.
    S := Trim(S);
    // S should now contain just the response text.




In response to

idHTTP1 message response. posted by Alan on Fri, 7 May 2004