Create POST requests with PHP Headers If for some reason you need to create a POST request using PHP headers, this is the way to go: