Ethan H
Ethan H

Reputation: 625

PHP HTTP Header to send POST data

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

Upvotes: 1

Views: 16032

Answers (1)

Garuda
Garuda

Reputation: 374

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

Upvotes: 3

Related Questions