On Wed, Sep 30, 2009 at 1:40 PM, Daniel Stenberg <[email protected]> wrote:
> On Wed, 30 Sep 2009, Anna Gulaev wrote: > > From the debug info, It appears that the expected stuff is sent, but the >> receiving script receives as standard input only one of the mime separators. >> The receiving script essentially just echoes its standard input, wrapped in >> some HTML. >> > > Then I would say the error is in the server end. Could you please look at the debug info? I said it looks okay to me, but I'm nobody and if my say-so was golden I wouldn't be asking for help :-) Does it look from the debug info that the receiving script should expect some POST data? Thanks, Anna == Info: About to connect() to xxxxxxxxxxxxxxxxxxxxxxx port 80 (#0) == Info: Trying xx.xx.xx.xx... == Info: Connected to xxxxxxxxxxxxxxxxxxxxxxx (xx.xx.xx.xx) port 80 (#0) => Send header, 0000000250 bytes (0x000000fa) 50 4f 53 54 20 xx xx xx xx xx xx xx xx xx xx xx POST xxxxxxxxxxx 75 70 64 61 74 65 2e 63 67 69 20 48 54 54 50 2f update.cgi HTTP/ 31 2e 31 0d 0a 55 73 65 72 2d 41 67 65 6e 74 3a 1.1..User-Agent: 20 xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xxxxxxxxxxxxxxx xx xx xx xx xx xx xx xx xx 0d 0a 48 6f 73 74 3a xxxxxxxxx..Host: 20 xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xxxxxxxxxxxxxxx xx xx xx xx xx xx xx xx 0d 0a 41 63 63 65 70 74 xxxxxxxx..Accept 3a 20 2a 2f 2a 0d 0a 43 6f 6e 74 65 6e 74 2d 4c : */*..Content-L 65 6e 67 74 68 3a 20 32 36 31 0d 0a 45 78 70 65 ength: 261..Expe 63 74 3a 20 31 30 30 2d 63 6f 6e 74 69 6e 75 65 ct: 100-continue 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 ..Content-Type: 6d 75 6c 74 69 70 61 72 74 2f 66 6f 72 6d 2d 64 multipart/form-d 61 74 61 3b 20 62 6f 75 6e 64 61 72 79 3d 2d 2d ata; boundary=-- 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ---------------- 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 66 39 37 39 32 37 ----------f97927 61 39 39 33 61 32 0d 0a 0d 0a a993a2.... <= Recv header, 0000000023 bytes (0x00000017) 48 54 54 50 2f 31 2e 31 20 31 30 30 20 43 6f 6e HTTP/1.1 100 Con 74 69 6e 75 65 0d 0a tinue.. => Send data, 0000000261 bytes (0x00000105) 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ---------------- 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 66 39 --------------f9 37 39 32 37 61 39 39 33 61 32 0d 0a 43 6f 6e 74 7927a993a2..Cont 65 6e 74 2d 44 69 73 70 6f 73 69 74 69 6f 6e 3a ent-Disposition: 20 66 6f 72 6d 2d 64 61 74 61 3b 20 6e 61 6d 65 form-data; name 3d 22 52 65 67 69 6f 6e 41 56 53 63 61 6e 73 22 ="RegionAVScans" 0d 0a 0d 0a 54 68 69 73 20 69 73 20 61 20 74 65 ....This is a te 73 74 0d 0a 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d st..------------ 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ---------------- 2d 2d 66 39 37 39 32 37 61 39 39 33 61 32 0d 0a --f97927a993a2.. 43 6f 6e 74 65 6e 74 2d 44 69 73 70 6f 73 69 74 Content-Disposit 69 6f 6e 3a 20 66 6f 72 6d 2d 64 61 74 61 3b 20 ion: form-data; 6e 61 6d 65 3d 22 73 75 62 6d 69 74 22 0d 0a 0d name="submit"... 0a 73 65 6e 64 0d 0a 2d 2d 2d 2d 2d 2d 2d 2d 2d .send..--------- 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ---------------- 2d 2d 2d 2d 2d 66 39 37 39 32 37 61 39 39 33 61 -----f97927a993a 32 2d 2d 0d 0a 2--.. <= Recv header, 0000000017 bytes (0x00000011) 48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 0d HTTP/1.1 200 OK. 0a . <= Recv header, 0000000037 bytes (0x00000025) 44 61 74 65 3a 20 57 65 64 2c 20 33 30 20 53 65 Date: Wed, 30 Se 70 20 32 30 30 39 20 31 32 3a 33 39 3a 34 37 20 p 2009 12:39:47 47 4d 54 0d 0a GMT.. <= Recv header, 0000000023 bytes (0x00000017) 53 65 72 76 65 72 3a 20 41 70 61 63 68 65 2f 32 Server: Apache/2 2e 32 2e 31 33 0d 0a .2.13.. <= Recv header, 0000000028 bytes (0x0000001c) 54 72 61 6e 73 66 65 72 2d 45 6e 63 6f 64 69 6e Transfer-Encodin 67 3a 20 63 68 75 6e 6b 65 64 0d 0a g: chunked.. <= Recv header, 0000000025 bytes (0x00000019) 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 74 65 Content-Type: te 78 74 2f 68 74 6d 6c 0d 0a xt/html.. <= Recv header, 0000000002 bytes (0x00000002) 0d 0a .. <= Recv data, 0000000155 bytes (0x0000009b) 39 35 0d 0a 3c 48 54 4d 4c 3e 3c 48 45 41 44 3e 95..<HTML><HEAD> 0a 3c 54 49 54 4c 45 3e 75 70 64 61 74 65 3c 2f .<TITLE>update</ 54 49 54 4c 45 3e 0a 3c 2f 48 45 41 44 3e 3c 42 TITLE>.</HEAD><B 4f 44 59 3e 0a 3c 50 3e 3c 76 73 5f 72 65 74 3e ODY>.<P><vs_ret> 73 74 75 66 66 20 67 6f 65 73 20 68 65 72 65 0a stuff goes here. 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d ---------------- 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 66 39 --------------f9 37 39 32 37 61 39 39 33 61 32 0d 0a 3c 2f 76 73 7927a993a2..</vs 5f 72 65 74 3e 3c 2f 50 3e 0a 3c 2f 42 4f 44 59 _ret></P>.</BODY 3e 3c 2f 48 54 4d 4c 3e 0a 0d 0a ></HTML>... <= Recv data, 0000000005 bytes (0x00000005) 30 0d 0a 0d 0a 0.... == Info: Connection #0 to host xxxxxxxxxxxxxxxxxxxxxxx left intact
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
