With PHP, is it possible to send HTTP headers with file_get_contents() ?
file_get_contents()
I know you can send the user agent from your php.ini file. However
php.ini
If you don't need HTTPS and curl is not available on your system you could use fsockopen
This function opens a connection from which you can both read and write like you would do with a normal file handle.