Making a HTTP GET request with HTTP-Basic authentication
basic-authentication, http, php
Solution
Using `file_get_contents()` with a `stream` to specify the HTTP credentials, or use `curl` and the `CURLOPT_USERPWD` option.
Problem
I need to build a proxy for a Flash Player project I'm working on. I simply need to make a HTTP GET request with HTTP-Basic authentication to another URL, and serve the response from PHP as if the PHP file was the original source. How can I do this?