Forum Discussion

gcampan's avatar
gcampan
Occasional Contributor
8 years ago

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?

 

10 Replies

    • gcampan's avatar
      gcampan
      Occasional Contributor

      Yes, I am using a test step inside a test case and valid project.

      In short, my problem is that files I upload end up having size 0 (zero) bytes. Postman on the other hand uploads the same file successfully.

       

      Somehow I am missing what combination of params and settings results in a succesful package.

       

      • nmrao's avatar
        nmrao
        Champion Level 3
        If you click the below 'Part', it should have a drop down and there is associated cid:xxxx some number then it shall work. In your case, it is empty from the screen shot.