Is there a way to get the exact Headers sent by function like file_get_contents() or get_headers() ?
like
get_headers('http://google.it');
echo php_get_request_headers(); //> ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Had this issue once so what i use is a proxy such as
fiddlerhttp://www.fiddler2.com/fiddler2/It capture all the request sent by this script because of the
stream_context_set_default.. this would work forfile_get_contents,fopenetc.