[function.file-get-contents]: failed to open stream: No connection could be made because the target machine actively refused it.
I am using the php code from the example and I get the error above. Can use the request in the browser and it asks for a user name and password. I entered the account key as a password and it works.
But when I use the example php code it does not work.
Have you an idea what could be wrong.
Try removing the proxy from the stream context. That worked for me.
$context = stream_context_create(array(
'http' => array(
// 'proxy' => 'tcp://127.0.0.1:8888',
'request_fulluri' => true,
'header' => "Authorization: Basic " . base64_encode($accountKey . ":" . $accountKey)
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?