How do I obtain the HTTP headers in response to a POST request I made with PHP?
Create an HTTP stream context and pass it into file_get_contents(). Afterwards, you can:
$metaData = stream_get_meta_data($context);
$headers = $metaData['wrapper_data'];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With