HTTP POST requests in PHP

http, php, post

Solution

You can't - HTTP does not allow this - if you want to pass arguments via a redirect they have to be embedded into the URL as GET vars.

C.

Problem

How do you go about redirecting a browser and sending a HTTP POST request in PHP? A `header("Location: file.php?foo=bar")` of HTTP POST requests, if you will.

Original source

Related problems