I'm using a cURL script to send POST data through a proxy to a script and I want to see what raw HTTP headers the cURL script is sending. List of things I've tried:
echo curl_getinfo($ch, CURLINFO_HEADER_OUT)
gives no output.file_get_contents('php://input')
gets some HTTP headers but not all.print_r($_SERVER)
also gets some HTTP headers but not all (I know this because there should be a X-Forwarded-For header and there isn't)- Printing all superglobals ($_POST, $_GET, $_REQUEST, $_FILES etc) still doesn't show the raw HTTP headers.
http_get_request_headers()
,apache_request_headers()
,$http_response_header
,$HTTP_RAW_POST_DATA
aren't outputting everything.
Help?