cURL / Mailing Lists / curl-library / Single Mail

curl-library

AW: problem with large file upload using ssl

From: Marco Vujevic [Steinberger IT] <marco.vujevic_at_steinberger-it.de>
Date: Mon, 26 Jan 2009 20:27:14 +0100

>If curl can't do it, I'm not surprised you can't do it with using libcurl
>either!
>
>What does a dump using --trace-ascii reveal? To me this seems like the server
>somehow doesn't like it. Have you tried the same operation against another
>server?

--trace-ascii is following below.

Unfortunately we cant try against another server because we need to talk to that specific kind sever(webservice).
I tried several times, and the resulting trace file is always 110kb big, no matter how long I keep curl running.

The commandline:
D:\>curl -k -XPUT -uAdministrator:xxx -T"D:\3gb_sized_file.dmp"
"https://xxx.16.1.29:8333/folder/testrechner/Thefile.dmp?dcPath=ha-datacenter
&dsName=standard" -g --trace-ascii test4.txt -#

The upload targets a webservice, and as said before works fine with files up to 2gb.

I'll cut out a part in the middle, this is the result:
Do you have

--------- --trace-ascii -------------
== Info: About to connect() to xxx.16.1.29 port 8333 (#0)
== Info: Trying xxx.16.1.29... == Info: connected
== Info: Connected to xxx.16.1.29 (xxx.16.1.29) port 8333 (#0)
== Info: SSL: couldn't set callback!
== Info: error setting certificate verify locations, continuing anyway:
== Info: CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: none
== Info: SSL connection using AES256-SHA
== Info: Server certificate:
== Info: subject: C=US, ST=California, L=Palo Alto, O=VMware, Inc., emailAddress=ssl-certificates_at_vmware.com, OU=VMware Server Certificate, CN=PC-xxx, unstructuredName=1231927014,564d7761726520496e632e
== Info: start date: 2009-01-14 09:56:54 GMT
== Info: expire date: 2028-03-15 09:56:54 GMT
== Info: common name: PC-xxx (does not match 'xxx.16.1.29')
== Info: issuer: C=US, ST=California, L=Palo Alto, O=VMware, Inc., emailAddress=ssl-certificates_at_vmware.com, OU=VMware Server Certificate, CN=PC-xxx, unstructuredName=1231927014,564d7761726520496e632e
== Info: SSL certificate verify result: self signed certificate (18), continuing anyway.
== Info: Server auth using Basic with user 'Administrator'
=> Send header, 318 bytes (0x13e)
0000: PUT /folder/testrechner/Thefile.dmp?dcPath=ha-datacenter&dsNa
0040: me=standard HTTP/1.1
0056: Authorization: Basic QWRtaW5pc3RyYXRvcjpQQHNzdzByZA==
008d: User-Agent: curl/7.19.3 (i586-pc-mingw32msvc) libcurl/7.19.3 Ope
00cd: nSSL/0.9.8g zlib/1.2.3
00e5: Host: xxx.16.1.29:8333
00fd: Accept: */*
010a: Content-Length: 3024486400
0126: Expect: 100-continue
013c:
== Info: Done waiting for 100-continue
=> Send data, 16384 bytes (0x4000)
0000: KDMV............................................................
0040: ..........
004d: ................................................................
008d: ................................................................
00cd: ................................................................
010d: ................................................................
014d: ................................................................
018d: ................................................................
01cd: ...................................................# Disk Descri
020d: ptorFile.version=1.CID=ed847447.parentCID=ffffffff.createType="m
024d: onolithicSparse"..# Extent description.RW 41943040 SPARSE "Windo
.
.
.
.
3f4d: =...=...>...A...E...>...?...?...@...B...F...I...O...........B...
3f8d: C...F...J...O...U.......C...D...G...J...P...G...H...K...P...V...
3fcd: H...I...K...Q...L...L...S...M...M...S...V...N...N..
=> Send data, 16384 bytes (0x4000)
0000: .T...W...X...X.......Q...R...R...T...U...W...Y...Y...Z...Z...[..
0040: .[...\...\...]...]...^...b...^..._...c...e...f...g..........._..
0080: .`...d...e...f...g...h...`...a...a...b...c...d.......h...i...i..
00c0: .q...........j...j...r...k...k...r.......l...l...s...m...m...s..
0100: .v...n...n...o...o...p...p...q...t...t...u...u...v...w.......w..
0140: .x...x...y...y...z...z...{...{...|...|.......}...}...~...~.....
.
.
.
.
3ec0: .............|+..............................................-..
3f00: .....................................8...9......................
3f40: .................................................0..............
3f80: .............;..................................................
3fc0: ............................................................. ..
=> Send data, 16384 bytes (0x4000)
0000: .!..."...................
001b: ...................................... ...!...............
0057: ................................................................
0097: .........................."...#...#...$...$...%...%...&...&...'.
00d7: ..'...(...(...)...)...,...-...*...*...,......./...0...0...+...+.
0117: ..-......./...1...1...2...2...3...3...4...4...5...5...6...6...7.
.
.
.
.
3f17: ..........................\.....................................
3f57: ..................v...v.......................p...q.............
3f97: ..................................................$...(...1...7.
3fd7: ..=...A...H...I...I...J...J..............
=> Send data, 16384 bytes (0x4000)
0000: .............................................................%..
0040: .................%...(...2.../...................&...)...2...7..
0080: .>....................... ... ...&...'...'...)...*...3...*...+..
00c0: .+...,...,...-...-.........../.../...0...4...0...1...4...8...3..
.
.
.
.
3f40: ................................................................
3f80: ................................................................
3fc0: ................................................................
=> Send data, 16384 bytes (0x4000)
0000: ................................................................
0040: ..... ... ...!...!..."...".......$...%...........*...+...+...,..
0080: .,...-...-.......................3...3...4...4...5...5...6...6..
00c0: .7...7...8.......A...B...B...C...C...D...D...E...E...F...F...G..
.
.
.
.
3f40: .d....B...B...B..^...^..._...b...c...e...e...c3..d3..f3..d...f..
3f80: .f...g...!...g...h...h...i...j...k...m...i...j...k...l...l...m..
3fc0: .n...n...o...q...o...p...p...q....3..r...r...s...s...t...t...u..
=> Send data, 16384 bytes (0x4000)
0000: .u...x...y...y...z...z...{...{...|...|...}...}...~...........*.
0040: ..*..6+..~...........................................3.........
0080: ..................+...+...+.....................................
.
.
.
3f40: .r&..t&..t&..u&..v&..v&..w&..x&..W&..X&..X&..Y&..i&..j&..j&..y&.
3f80: .z&..{&..{&..&...&...&...&...&...&...&...&...&...&...&...&...&.
3fc0: ..&...&..|&..}&...C..|&..}&..~&..~&..&...&...&...&...3...3...3.
----------- EOF ----------

Mit freundlichen Grüßen / best regards
Marco Vujevic

--
Steinberger IT GmbH 
Bahnhofstr. 1-3
D-66111 Saarbrücken
Tel-Zentrale: +49 (681) 37996180
Tel-Durchwahl: +49 (681) 37996184
Fax: +49 (681) 37996186
Mail: Marco.Vujevic_at_steinberger-it.de
Web: http://www.steinberger-it.de
Geschäftsführer: Sven Steinberger
Registergericht: Amtsgericht Saarbrücken
Registernummer: HRB 17509
Umsatzsteuer-Identifikationsnummer: DE-NEU
Received on 2009-01-26