cURL / Mailing Lists / curl-users / Single Mail

curl-users

POST a large file over HTTPS to IIS-5 problem

From: Veselin Terzic <veselin.terzic_at_systems.dhl.com>
Date: Mon, 16 Dec 2002 11:41:11 -0700

Dear Curl users,

curl 7.10.2 (i686-pc-linux-gnu) libcurl/7.10.2 OpenSSL/0.9.6g zlib/1.1.3

My problem is that I have troubles posting larger files to an IIS-5 server
over HTTPS.
I have tried to lower CURL_MAX_WRITE_SIZE to 10K and then to 1K, but that
didn't make any difference, although it looks like SSL_write() was the
issue.

I've noticed 3 different behaviors:

1. file size 3.5K, no errors, i.e. I don't get any "Send header, 0 bytes"
2. file size 1 MB I get a lot of "Send header, 0 bytes" messages, but curl
recovers and POSTs file successfully.
3. file size 6.6 MB I get the error below and file cannot be posted .

/opt/curl/bin/curl -s -w "HTTP CODE IS %{http_code}" -A
"Mozilla/4.0" --trace - --data-binary
@/local/ftp/secure/edi_customers/foo/outbound/myfile
"https://data.foo.com/dx/automated/FilePost.aspx?Username=****&Password=****
HTTP/1.0"

== Info: gethostbyname_r() uses 600 bytes
== Info: About to connect() to data.foo.com:443
== Info: Connected to data.foo.com (xxx.xxx.240.239) port 443
== Info: SSL connection using RC4-MD5
== Info: Server certificate:
== Info: subject:
/C=US/ST=Minnesota/L=Minneapolis/O=FOO/OU=crt/CN=data.foo.com
== Info: start date: 2002-01-23 00:00:00 GMT
== Info: expire date: 2003-01-23 23:59:59 GMT
== Info: common name: data.foo.com (matched)
== Info: issuer: /O=VeriSign Trust Network/OU=VeriSign,
Inc./OU=VeriSign International Server CA - Class 3/OU=www.verisign.com/CPS
Incorp.by Ref. LIABILITY LTD.(c)97 VeriSign
=> Send header, 0 bytes (0x0)
=> Send header, 0 bytes (0x0)
=> Send header, 0 bytes (0x0)
=> Send header, 0 bytes (0x0)
=> Send header, 0 bytes (0x0)
<snip> ... a lot of these
=> Send header, 0 bytes (0x0)
== Info: SSL_write() return error 5
HTTP CODE IS 000== Info: Closing connection #0

Thanks a lot

-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
Received on 2002-12-16