PHP HTTP Header to send POST data

Ethan H picture Ethan H · May 1, 2012 · Viewed 15.3k times · Source

Is there a way to send POST data using HTTP headers without a form from PHP?

Answer

Garuda picture Garuda · May 1, 2012

Sure, you can create a valid http request with your specified POST parameters easily using a library like cURL.

See this for a curl example

If you are limited to plain PHP you can create your own (valid) http-request, see example