How can I receive a cURL request in 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
Mitch_H
Forum Newbie
Posts: 7
Joined: Wed Apr 29, 2009 12:33 pm

How can I receive a cURL request in PHP?

Post 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.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

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

Post 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.
Post Reply