title: How to send HTTP request and retrieve response in PHP (with fine-tuning of headers)?
body: <p>I have to send a HTTP request to an URL and retrieve response together with headers. I'm interested not only in page content, but in all headers also. What is the optimal solution? sockets? PEAR libraries are not accessible, PHP configuration is not editable.</p>