How to get HTTP headers in response to a POST request I made with PHP?
How did you post POST? I use a socket and then read the answer where I get the headers and body.
Create an HTTP stream context and pass it to file_get_contents(). Subsequently, you can:
file_get_contents()
$metaData = stream_get_meta_data($context); $headers = $metaData['wrapper_data'];
you will find them in a superglobal $_SERVER... everything that starts with HTTP_should be a header ... it depends on the server how well it will work ...
$_SERVER
HTTP_
Greetz
back2dos
Source: https://habr.com/ru/post/1712958/More articles:How to specify a css property that will only be applied if the browser is IE in the stylesheet? - csscx_Oracle и парадигма источника данных - pythonCan I start / stop the application pool or website in IIS programmatically? - .netПрогрессивные трюки - javascriptCustom microphone sound recording in silverlight 3 - silverlightDuplicate linked list - linked-list64bit library limited to 4GB? - c ++Qt moc calls the "undefined link to:" error - qtObject Oriented C ++ API for Tokyo Cabinet? - c ++Retention Order - c #All Articles