Page 1 of 1

How can I receive a cURL request in PHP?

Posted: Wed Sep 02, 2009 2:47 pm
by Mitch_H
Hi everyone.

Everything I read about cURL shows how to make a cURL request in PHP. Does anybody know of a tutorial which teaches how to receive a cURL request in PHP, or have an example?

Something simple like a "Hello World" which would be sent by the requestor, and handled by the responding server would be awesome.

Re: How can I receive a cURL request in PHP?

Posted: Wed Sep 02, 2009 3:16 pm
by Eran
A curl requested is received as a normal http/https request. Simply point it at your script and process the request as you normally would using the $_GET / $_POST arrays or any abstraction you might be using.