Page 1 of 1

http_get

Posted: Thu May 22, 2008 7:16 pm
by momukhtar
Hi

I have used http_get to get a string from another webserver. The "response" (string) which I receive also contains the http header information. Is there a way I can directly strip off the header information and use the actual string data.

Re: http_get

Posted: Thu May 22, 2008 9:45 pm
by Ambush Commander
Use

Code: Select all

http_parse_message(http_get($url))->body;

Re: http_get

Posted: Fri May 23, 2008 1:47 pm
by momukhtar
Thanks