This question already has an answer here:
- Making a HTTP GET request with HTTP-Basic authentication 4 answers
I need to reach a foreign .php page protected by a regular .htaccess file (Auth type Basic, htpasswords etc...).
I'd like to send the user and password needed through the request. Is it possible? I would like to avoid cURL
and all pecl_http
dependent functions if possible...