Error occurs when uploading the file to the windows azure storage on nginx web server


On nginx web server, according to the following in sample code, upload a 5 KB file, an exception is as follows
<?xml version="1.0" encoding="utf-8"?>
     <Message>The value for one of the HTTP headers is not in the correct format.RequestId:2ca93ad8-e91d-420c-8f8d-9a5dedb9caedTime:2014-07-11T08:22:22.6457958Z</Message>
After examination, at run time, last received $body length is zero in 1309 lines in the file BlobRestProxy.php, this is obviously wrong.
$body = fread ($content, $blockSize); 
My solution is to add the following code below the above line of code
If (strlen ($body) = = 0) { 
     $end = 1; 
Not sure if this solution is correct or not.


blobaugh wrote Jul 15, 2014 at 10:10 PM

Hello. This project has been dead for a long time. Please the new official SDK from http://azure.microsoft.com/en-us/downloads/

swanston wrote Jul 16, 2014 at 1:44 AM

hello, I just download new offical SDK according to you recommendation. But I notice all office document ( http://azure.microsoft.com/en-us/documentation/articles/php-download-sdk/ )and sample still for the old SDK. So I don't know how to use New SDK. How do I get the latest offical document and example for new SDK?

blobaugh wrote Jul 16, 2014 at 5:13 PM

I am not sure what office documents you are referring to. The current documentation lives online at http://azure.microsoft.com/en-us/develop/php/