cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: unknown curl problem

From: Davies, Simon <Simon.Davies_at_au.fujitsu.com>
Date: Mon, 18 Jul 2005 17:18:59 +0930

>> Does anyone know what this error is and what causes it?
>
>You need to give us more details first. Like what curl version and more
exactly what command line you use. Preferably >even what the server
responded (like when recorded with --trace-ascii).

Ok, here is the calling code:
Public Function ExecCmd(cmdline$) As Long
    Dim proc As PROCESS_INFORMATION
    Dim start As STARTUPINFO

    ' Initialize the STARTUPINFO structure:
    start.cb = Len(start)

    ' Start the shelled application:
    Ret& = CreateProcessA(vbNullString, cmdline$, 0&, 0&, 1&,
NORMAL_PRIORITY_CLASS, 0&, vbNullString, start, proc)

    ' Wait for the shelled application to finish:
    Ret& = WaitForSingleObject(proc.hProcess, INFINITE)
    Call GetExitCodeProcess(proc.hProcess, Ret&)
    Call CloseHandle(proc.hThread)
    Call CloseHandle(proc.hProcess)
    ExecCmd = Ret&
End Function

Where cmdline is:
"C:\TEMP\TMSAuto-test\cURL\curl.exe -v -# --trace-ascii traceup.txt
--cacert C:\TEMP\TMSAuto-test\cURL\ca-bundle.crt -u username:password -F
upfile=@EDXNTHOT.1827 -F press=""upload file""
https://test.olb.centrelink.gov.au/filex2/restricted/file-upload.cgi"
 
This is the server's response:
== Info: About to connect() to test.olb.centrelink.gov.au:443
== Info: Connected to test.olb.centrelink.gov.au (203.13.4.102) port 443
== Info: SSL connection using DES-CBC3-SHA
== Info: Server certificate:
== Info: subject: /C=AU/ST=Australian Capital
Territories/O=Centrelink/OU=UES/OU=Terms of use at www.verisign.com/rpa
(c)00/CN=test.olb.centrelink.gov.au
== Info: start date: 2004-08-03 00:00:00 GMT
== Info: expire date: 2005-08-08 23:59:59 GMT
== Info: common name: test.olb.centrelink.gov.au (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, 398 bytes (0x18e)
0000: POST /filex2/restricted/file-upload.cgi HTTP/1.1
0032: Authorization: Basic c2hhbnQ6cGFzc3dvcmQ=
005d: User-Agent: curl/7.10.3 (win32) libcurl/7.10.3 OpenSSL/0.9.6g
009c: Host: test.olb.centrelink.gov.au
00be: Pragma: no-cache
00d0: Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
0112: Content-Length: 21175
0129: Expect: 100-continue
013f: Content-Type: multipart/form-data; boundary=curlKMoa4c9jpxYyWhvB
017f: JfWJJEAu12S
018c:
<= Recv header, 23 bytes (0x17)
0000: HTTP/1.1 100 Continue
=> Send data, 16384 bytes (0x4000)
0000: --curlKMoa4c9jpxYyWhvBJfWJJEAu12S
0023: Content-Disposition: form-data; name="upfile"; filename="EDXNTHO
0063: T.1827"
006c: Content-Type: text/plain
0086:
                                    
*** contents of file ***

                                             
10de:
111e:
115e:
119e:
11de:
121e:
1230:
1232: --curlKMoa4c9jpxYyWhvBJfWJJEAu12S
1255: Content-Disposition: form-data; name="press"
1283:
1285: upload file
1292: --curlKMoa4c9jpxYyWhvBJfWJJEAu12S--
<= Recv header, 17 bytes (0x11)
0000: HTTP/1.1 200 OK
<= Recv header, 37 bytes (0x25)
0000: Date: Mon, 18 Jul 2005 06:45:07 GMT
<= Recv header, 21 bytes (0x15)
0000: Server: HTTPD/1.0.0
<= Recv header, 34 bytes (0x22)
0000: Vary: Accept-Encoding,User-Agent
<= Recv header, 45 bytes (0x2d)
0000: Content-Type: text/html; charset=ISO-8859-1
<= Recv header, 28 bytes (0x1c)
0000: Transfer-Encoding: chunked
<= Recv data, 1058 bytes (0x422)
0000: 416
0005: <?xml version="1.0" encoding="iso-8859-1"?>.<!DOCTYPE html..PUBL
0045: IC "-//W3C//DTD XHTML 1.0 Transitional//EN".. "http://www.w3.org
0085: /TR/xhtml1/DTD/xhtml1-transitional.dtd">.<html xmlns="http://www
00c5: .w3.org/1999/xhtml" lang="en-US" xml:lang="en-US"><head><title>T
0105: est Centrelink FileEx</title>.<link rev="made" href="mailto:csda
0145: " />.<meta name="Description" content="Centrelink FileEx" />.<li
0185: nk rel="icon" href="/filex2/favicon.ico" />.<link rel="SHORTCUT
01c5: ICON" href="/filex2/favicon.ico" />.<link rel="stylesheet" type=
0205: "text/css" href="/filex2/styles/filex2.css" />.</head><body><div
0245: class="table"><table><tr><td><img nosave="1" height="200" src="
0285: /filex2/logos/colwide.jpg" width="610" /></td></tr></table></div
02c5: ><h2><strong>!!! WARNING: THIS IS A TEST SERVER !!!</strong></h2
0305: ><h2><strong></strong></h2><h1>Success</h1><p>The file was succe
0345: ssfully uploaded</p><p><i>File EDXNTHOT.1827 received.</i></p><h
0385: r /><p>Return to Menu</p><hr /
03c5: ><center><i>FileEx Version 2.1 <br>changed 15/01/2005</i></cente
0405: r><hr /></body></html>
041d: 0
0420:
== Info: Connection #0 left intact

The HTML code at the end is displayed in the curl output window when the
windows error message is displayed. Is this enough? Or would you need
the register dump to know whats causing the problem?

This is an email from Fujitsu Australia Limited, ABN 19 001 011 427. It is confidential to the ordinary user of the email address to which it was addressed and may contain copyright and/or legally privileged information. No one else may read, print, store, copy or forward all or any of it or its attachments. If you receive this email in error, please return to sender. Thank you.
 
If you do not wish to receive commercial email messages from Fujitsu Australia Limited, please email unsubscribe_at_au.fujitsu.com
Received on 2005-07-18