Re: idHTTP1 message response.

Giganews Newsgroups
Subject: Re: idHTTP1 message response.
Posted by:  Remy Lebeau (TeamB) (gambit47.no.spam@no.spam.yahoo.com)
Date: Fri, 7 May 2004

"Alan" <AllanlRemhe…@jameswatt.andhere.ac.uk> wrote in message
news:6B1DE0FA449CE240AllanlRemhe…@jameswatt.andhere.ac.uk...

> 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
example:

    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.

Gambit

Replies

None

In response to

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