Page 1 of 1

HTTP post and return back the result immediately using PHP

Posted: Tue Jan 16, 2007 1:40 am
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.

Posted: Tue Jan 16, 2007 2:38 pm
by feyd
cURL or Snoopy may be of interest.

Posted: Tue Jan 16, 2007 4:08 pm
by Kieran Huggins
fsockopen() is built in to PHP, and learning to speak HTTP isn't hard - you could POST that way.

Posted: Tue Jan 16, 2007 7:05 pm
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.

Posted: Tue Jan 16, 2007 7:29 pm
by John Cartwright
All the suggestions given return a result.