Snippets tagged “stream-context”
4 snippets use this tag.
- file_get_contents behind a proxy?PHP
The file_get_contents function in PHP can be used to retrieve the contents of a file from a remote server.
- How to get file_get_contents() to work with HTTPS?PHP
To get file_get_contents() to work with HTTPS, you may need to make sure that PHP has been compiled with the OpenSSL extension.
- How to send HTTPS posts using phpPHP
To send an HTTPS POST request using PHP, you can use the curl extension.
- PHP cURL how to add the User Agent value OR overcome the Servers blocking cURL requests?PHP
You can add a custom User Agent value to a cURL request in PHP using the CURLOPT_USERAGENT option.