gcampan
8 years agoOccasional Contributor
Upload of zip file via PUT to Azure results in file with 0 bytes written
Hi,
I need to translate the following request into Soap UI NG: it is basically a PUT to an Azure URL where I need to upload a zip file.
curl -X PUT -H "x-ms-blob-type:BlockBlob" --upload-file test_file.zip "http://thisismyurl.com"
I have created a step, where I attach a zip file. However, the raw pane indicates that the length of the content is 0.
Here is how it looks like:
PUT https://myhost.com/blob_80205bcf-d17a-4342-8dcc-f9cbbd64eb5a.zip HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: application/octet-stream x-ms-blob-type: BlockBlob Content-Length: 0 Host: myhost.com Connection: Keep-Alive User-Agent: Apache-HttpClient/4.5.1 (Java/1.8.0_74)
What am I doing wrong please?