curl-users
Uploding large files on Windows fails consistently
Date: Mon, 3 Mar 2014 17:41:31 +0400
Hi,
I am struggling to get going with uploading big files from my windows curl
command line. I know that some of the curl versions do not support big
files, so I made sure the current version does (as per the output of curl
-V below).
I even tried to do a -ignore-content-length, but in vain. What I observe
consistently is that, as soon as I issue the command to upload a 1Gb file,
curl responds with "We are completely uploaded and fine", which is quite
strange for me considering the size of the file to be 1Gb.
Fortunately this works on Mac and Linux, but unfortunate on windows.
OS details:
----------------
Windows 7 professional.
64 bit OS
Service Pack1.
Processor: Intel core i5
Curl details:
--------------
hp_at_hp-PC/cygdrive/c/Users/hp/Downloads/curl-7.35.0-win64/curl-7.35.0-win64/bin
$ ./curl.exe -V
curl 7.35.0 (x86_64-pc-win32) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8
WinIDN li
bssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s
rtsp
scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM SPNEGO SSL SSPI
libz
Curl command to upload:
----------------------------------
hp_at_hp-PC/cygdrive/c/Users/hp/Downloads/curl-7.35.0-win64/curl-7.35.0-win64/bin
$ ./curl.exe -X PUT -T onegb.txt http://mysite.com -u user@email.com:123456-v
* Hostname was NOT found in DNS cache
* Trying 92.168.139.5...
* Connected to mysite.com (92.168.139.5) port 80 (#0)
* Server auth using Basic with user 'user_at_email.com'
> PUT /onegb.txt HTTP/1.1
> Authorization: Basic bHRhQG9uZS5jb206MTIzNDU2
> User-Agent: curl/7.35.0
> Host: mysite.com
> Accept: */*
> Content-Length: 1073741824
> Expect: 100-continue
>
* Done waiting for 100-continue
< HTTP/1.1 100 Continue
* We are completely uploaded and fine
Thanks,
-Sandeep
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-03-03