Donate Share

curl and libcurl

Tracker: Bugs

5 uploading a very small file fails - ID: 2254709
Last Update: Settings changed ( vfiack )

Uploading a small file fails with https, resulting in an empty file instead
of a small one.

Steps to reproduce:
echo "test" > small.txt
curl -k -F file=@small.txt https://www/upload.jsp

We get the correct filename, with empty content.

The same with http works perfeclty. The same with a standard browser (IE or
firefox) works as expected.

Using a file with 60 bytes of contents works as expected.

Versions used:
* curl 7.12.1 (i386-redhat-linux-gnu) libcurl/7.12.1 OpenSSL/0.9.7a
zlib/1.2.1.2 libidn/0.5.6

* curl 7.19.0 (i386-pc-win32) libcurl/7.19.0 OpenSSL/0.9.8h zlib/1.2.3
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: Largefile NTLM SSL SSPI libz

Notes:
the server certificate is invalid (self-signed)


Vincent FIACK ( vfiack ) - 2008-11-10 10:11

5

Closed

Works For Me

Daniel Stenberg

https

wrong content

Public


Comments ( 2 )

Date: 2008-11-10 12:21
Sender: vfiack

You're right, I can see my content in the dump.

I don't understand why i have this behaviour, considering that my code is
the same regardless which protocol is used, and considering that it works
with a basic browser, but since it's in the dump, curl is probably correct.


Date: 2008-11-10 12:07
Sender: bagderProject AdminAccepting Donations

I think the problem is in your receiving end. Use the --trace or
--trace-ascii option to get a complete protocol "dump" and it should tell.


Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2008-11-10 12:22 vfiack
resolution_id None 2008-11-10 12:22 vfiack
close_date - 2008-11-10 12:22 vfiack