Hello everybody,
I am having a problem when I post a file to a URL that I know is valid.  When I 
create a simple html form, load it in my browser, paste the XML contents into a 
field in the form, and submit, the server responds as expected.  

However, when I do it using libcurl, I get a 404 error.  I started looking 
deeper with tcpdump, and see that there is a cksum error, which I don't see 
when I hit this url via the browser.  I'm not sure if this is the problem, but 
a cksum error certainly isn't a good indication.  Does anybody have any idea 
why this is occurring.  I have attached part of the tcpdump output.

Thanks,
Tim.


08:11:23.125314 IP (tos 0x0, ttl  64, id 47402, offset 0, flags [DF], proto: 
TCP (6), length: 207) cs-700-1.rose.hp.com.57374 > cvxp-test1.rose.hp.com.dc: 
P, cksum 0xaac4 (incorrect (-> 0x26a4), 1:156(155) ack 1 win 46 
<nop,nop,timestamp 3828124258 0>
        0x0000:  4500 00cf b92a 4000 4006 d6fb 0fff 0055  e.....@[email protected]
        0x0010:  0f17 8a98 e01e 07d1 b2ba 3374 b2d4 2df2  ..........3t..-.
        0x0020:  8018 002e aac4 0000 0101 080a e42c 8a62  .............,.b
        0x0030:  0000 0000 504f 5354 202f 2048 5454 502f  ....POST./.HTTP/
        0x0040:  312e 310d 0a48 6f73 743a 2063 7678 702d  1.1..Host:.cvxp-
        0x0050:  7465 7374 312e 726f 7365 2e68 702e 636f  test1.rose.hp.co
        0x0060:  6d3a 3230 3031 0d0a 4163 6365 7074 3a20  m:2001..Accept:.
        0x0070:  2a2f 2a0d 0a43 6f6e 7465 6e74 2d54 7970  */*..Content-Typ
        0x0080:  653a 2074 6578 742f 786d 6c0d 0a41 7574  e:.text/xml..Aut
        0x0090:  686f 7269 7a61 7469 6f6e 3a20 4261 7369  horization:.Basi
        0x00a0:  6320 6333 6c7a 6447 5674 4f6d 3168 626d  c.c3lzdGVtOm1hbm
        0x00b0:  466e 5a58 493d 0d0a 436f 6e74 656e 742d  FnZXI=..Content-
        0x00c0:  4c65 6e67 7468 3a20 3137 350d 0a0d 0a    Length:.175....
08:11:23.264638 IP (tos 0x0, ttl 127, id 56431, offset 0, flags [DF], proto: 
TCP (6), length: 52) cvxp-test1.rose.hp.com.dc > cs-700-1.rose.hp.com.57374: ., 
cksum 0x5aa5 (correct), 1:1(0) ack 156 win 65380 <nop,nop,timestamp 36852334 
3828124258>
        0x0000:  4500 0034 dc6f 4000 7f06 7551 0f17 8a98  [email protected]....
        0x0010:  0fff 0055 07d1 e01e b2d4 2df2 b2ba 340f  ...U......-...4.
        0x0020:  8010 ff64 5aa5 0000 0101 080a 0232 526e  ...dZ........2Rn
        0x0030:  e42c 8a62                                .,.b
08:11:23.264646 IP (tos 0x0, ttl  64, id 47403, offset 0, flags [DF], proto: 
TCP (6), length: 227) cs-700-1.rose.hp.com.57374 > cvxp-test1.rose.hp.com.dc: 
P, cksum 0xaad8 (incorrect (-> 0x4c03), 156:331(175) ack 1 win 46 
<nop,nop,timestamp 3828124397 36852334>
        0x0000:  4500 00e3 b92b 4000 4006 d6e6 0fff 0055  e.....@[email protected]
        0x0010:  0f17 8a98 e01e 07d1 b2ba 340f b2d4 2df2  ..........4...-.
        0x0020:  8018 002e aad8 0000 0101 080a e42c 8aed  .............,..
        0x0030:  0232 526e 3c3f 786d 6c20 7665 7273 696f  .2Rn<?xml.versio
        0x0040:  6e3d 2231 2e30 223f 3e0a 3c48 6943 6f6d  n="1.0"?>.<HiCom
        0x0050:  6d61 6e64 5365 7276 6572 4d65 7373 6167  mandServerMessag
        0x0060:  653e 0a3c 4150 4949 6e66 6f20 7665 7273  e>.<APIInfo.vers
        0x0070:  696f 6e3d 2232 2e33 222f 3e0a 3c52 6571  ion="2.3"/>.<Req
        0x0080:  7565 7374 3e0a 3c53 6572 7665 7241 646d  uest>.<ServerAdm
        0x0090:  696e 3e0a 3c47 6574 2074 6172 6765 743d  in>.<Get.target=
        0x00a0:  2253 6572 7665 7249 6e66 6f22 2f3e 0a3c  "ServerInfo"/>.<
        0x00b0:  2f53 6572 7665 7241 646d 696e 3e0a 3c2f  /ServerAdmin>.</
        0x00c0:  5265 7175 6573 743e 0a3c 2f48 6943 6f6d  Request>.</HiCom
        0x00d0:  6d61 6e64 5365 7276 6572 4d65 7373 6167  mandServerMessag
        0x00e0:  653e 0a                                  e>.
08:11:23.265568 IP (tos 0x0, ttl 127, id 56432, offset 0, flags [DF], proto: 
TCP (6), length: 99) cvxp-test1.rose.hp.com.dc > cs-700-1.rose.hp.com.57374: P, 
cksum 0x0240 (correct), 1:48(47) ack 331 win 65205 <nop,nop,timestamp 36852334 
3828124397>
        0x0000:  4500 0063 dc70 4000 7f06 7521 0f17 8a98  [email protected]!....
        0x0010:  0fff 0055 07d1 e01e b2d4 2df2 b2ba 34be  ...U......-...4.
        0x0020:  8018 feb5 0240 0000 0101 080a 0232 526e  [email protected]
        0x0030:  e42c 8aed 4854 5450 2f31 2e30 2034 3034  .,..HTTP/1.0.404
        0x0040:  204e 6f74 2066 6f75 6e64 0d0a 436f 6e74  .Not.found..Cont
        0x0050:  656e 742d 4c65 6e67 7468 3a20 3139 380d  ent-Length:.198.
        0x0060:  0a0d 0a                                  ...
08:11:23.265575 IP (tos 0x0, ttl  64, id 47404, offset 0, flags [DF], proto: 
TCP (6), length: 52) cs-700-1.rose.hp.com.57374 > cvxp-test1.rose.hp.com.dc: ., 
cksum 0x5872 (correct), 331:331(0) ack 48 win 46 <nop,nop,timestamp 3828124398 
36852334>
        0x0000:  4500 0034 b92c 4000 4006 d794 0fff 0055  E..4.,@[email protected]
        0x0010:  0f17 8a98 e01e 07d1 b2ba 34be b2d4 2e21  ..........4....!
        0x0020:  8010 002e 5872 0000 0101 080a e42c 8aee  ....Xr.......,..
        0x0030:  0232 526e                                .2Rn
08:11:23.265765 IP (tos 0x0, ttl 127, id 56433, offset 0, flags [DF], proto: 
TCP (6), length: 250) cvxp-test1.rose.hp.com.dc > cs-700-1.rose.hp.com.57374: 
P, cksum 0x2226 (correct), 48:246(198) ack 331 win 65205 <nop,nop,timestamp 
36852334 3828124397>
        0x0000:  4500 00fa dc71 4000 7f06 7489 0f17 8a98  [email protected].....
        0x0010:  0fff 0055 07d1 e01e b2d4 2e21 b2ba 34be  ...U.......!..4.
        0x0020:  8018 feb5 2226 0000 0101 080a 0232 526e  ...."&.......2Rn
        0x0030:  e42c 8aed 3c21 444f 4354 5950 4520 4854  .,..<!DOCTYPE.HT
        0x0040:  4d4c 2050 5542 4c49 4320 222d 2f2f 5733  ML.PUBLIC."-//W3
        0x0050:  432f 2f44 5444 2048 544d 4c20 342e 3020  C//DTD.HTML.4.0.
        0x0060:  5472 616e 7369 7469 6f6e 616c 2f2f 454e  Transitional//EN
        0x0070:  223e 3c68 746d 6c3e 3c68 6561 643e 3c74  "><html><head><t
        0x0080:  6974 6c65 3e4e 6f74 2046 6f75 6e64 3c2f  itle>Not.Found</
        0x0090:  7469 746c 653e 3c2f 6865 6164 3e3c 626f  title></head><bo
        0x00a0:  6479 3e3c 6832 3e4e 6f74 2046 6f75 6e64  dy><h2>Not.Found
        0x00b0:  3c2f 6832 3e3c 703e 5468 6520 7365 7276  </h2><p>The.serv
        0x00c0:  6572 2063 616e 6e6f 7420 6669 6e64 2074  er.cannot.find.t
        0x00d0:  6865 2072 6571 7565 7374 6564 2064 6f63  he.requested.doc
        0x00e0:  756d 656e 742e 3c2f 703e 3c2f 626f 6479  ument.</p></body
        0x00f0:  3e3c 2f68 746d 6c3e 0d0a                 ></html>..
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to