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
beso4ever
Forum Newbie
Posts: 10 Joined: Fri Jul 20, 2007 10:02 am
Post
by beso4ever » Fri Jul 20, 2007 10:09 am
hi everyone
i need help
how can i get or retrieve the Http response body and put it on an array
ex: if i request this url
http://www.mysite.com/page.php?var1=3&var3=r
when i sumbit this request i need the response body or response to make some operation on it
please anyone help me
thanks
Ambush Commander
DevNet Master
Posts: 3698 Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US
Post
by Ambush Commander » Fri Jul 20, 2007 11:42 am
If the headers are not necessary and fopen remote files is enabled file_get_contents will do the trick. Otherwise, use cURL.
beso4ever
Forum Newbie
Posts: 10 Joined: Fri Jul 20, 2007 10:02 am
Post
by beso4ever » Fri Jul 20, 2007 12:01 pm
Ambush Commander wrote: If the headers are not necessary and fopen remote files is enabled file_get_contents will do the trick. Otherwise, use cURL.
thanks
i will use curl library but if u have quickly soulation it is will be better
are this library(Curl) will give me respnse body of any requested page on web ?
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Fri Jul 20, 2007 5:48 pm
Try it. There are examples on the manual's pages and all over the web.
beso4ever
Forum Newbie
Posts: 10 Joined: Fri Jul 20, 2007 10:02 am
Post
by beso4ever » Tue Jul 24, 2007 5:15 am
very thanks Ambush i solved it by curl
thanks to ur help