HTTP post and return back the result immediately using PHP

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
fhy
Forum Newbie
Posts: 2
Joined: Tue Jan 16, 2007 1:10 am

HTTP post and return back the result immediately using PHP

Post by fhy »

Dear All,

I have the server at my office and i want to send some parameters to remote server application to process the data, after the data has been processed, i want get back the immediate result for example the status from the remote server.
Can anyone show me how do use the PHP to get this whole process be done by using the HTTP post.

Thanks for advance.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

cURL or Snoopy may be of interest.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

fsockopen() is built in to PHP, and learning to speak HTTP isn't hard - you could POST that way.
fhy
Forum Newbie
Posts: 2
Joined: Tue Jan 16, 2007 1:10 am

Post by fhy »

fsockopen only can apply for HTTP post, but i cannot get back the immediate result in URL string from the remote server. I need a function to allow me to post the parameters(HTTP post method) to the remote application to process and then get back the immediate reply result in url string format from the remote application.

Thank you.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

All the suggestions given return a result.
Post Reply