cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Question about options in FORM POST Multipart

From: Pierre <junk_at_regne.net>
Date: Sat, 24 Dec 2005 13:29:08 +0100

again :

this command

C:\temp\curl-7.15.1-win32-nossl-sspi\curl-7.15.1>curl -F
"fileupload=@g3829.png;
type=image/png" -A "Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8)
Gecko/2
0051111 Firefox/1.5" --trace-ascii debug.txt imageshack.us/index.php

gave me

== Info: About to connect() to imageshack.us port 80
== Info: Trying 209.172.60.116... == Info: connected
== Info: Connected to imageshack.us (209.172.60.116) port 80
=> Send header, 286 bytes (0x11e)
0000: POST /index.php HTTP/1.1
001a: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8)
005a: Gecko/20051111 Firefox/1.5
0077: Host: imageshack.us
008c: Accept: */*
0099: Content-Length: 14289
00b0: Expect: 100-continue
00c6: Content-Type: multipart/form-data; boundary=--------------------
0106: --------0b61bb565673
011c:
<= Recv header, 33 bytes (0x21)
0000: HTTP/1.1 417 Expectation Failed
<= Recv header, 19 bytes (0x13)
0000: Connection: close
<= Recv header, 19 bytes (0x13)
0000: Content-Length: 0
<= Recv header, 37 bytes (0x25)
0000: Date: Sun, 25 Dec 2005 00:18:01 GMT
<= Recv header, 24 bytes (0x18)
0000: Server: lighttpd/1.4.8
== Info: Closing connection #0

Seeing the archive, I've seen this is a bug in LIGHTTPD server that
doesnt maintain the "HTTP continue" request, so

I used -H "Expect:" in the command line tool
And all went fine then :)

I just need to find how pass this to the PHP librairy now :)

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2005-12-24