http_get

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
momukhtar
Forum Newbie
Posts: 11
Joined: Thu Mar 06, 2008 8:02 pm

http_get

Post 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.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Re: http_get

Post by Ambush Commander »

Use

Code: Select all

http_parse_message(http_get($url))->body;
momukhtar
Forum Newbie
Posts: 11
Joined: Thu Mar 06, 2008 8:02 pm

Re: http_get

Post by momukhtar »

Thanks
Post Reply