curl-users
Re: curl works on one machine and fails on another.
Date: Fri, 31 Oct 2003 14:30:56 -0800 (PST)
If I use 7.10.7 on the windows box, it still works. I noticed when I
did a diff on the trace files, the linux box is using openssl-0.9.6b,
while the windows box uses OpenSSL/0.9.6i. I'm currently trying to
rebuild curl on linux with openssl-0.9.7c. I'm not sure if this is the
way to go or not. I'm not a programmer, so I'm going about this a
little blindly.
Thanks for the trace advice. Another thing I've noticed is that one of
my POST variables is being dropped on one request. I'm not sure why
that would be. I've included them below. The PlanID variable is
missing in the second trace.
Trace from Windows Box:
0000: 50 4f 53 54 20 2f 73 6d 69 74 68 62 61 72 6e 65 POST /smithbarne
0010: 79 2f 69 6e 64 65 78 32 2e 63 66 6d 3f 53 53 4e y/index2.cfm?SSN
0020: 3d 34 33 34 36 31 32 35 39 31 26 50 6c 61 6e 49 =555555555&PlanI
0030: 44 3d 30 30 34 35 31 32 20 48 54 54 50 2f 31 2e D=999999 HTTP/1.
0040: 31 0d 0a 55 73 65 72 2d 41 67 65 6e 74 3a 20 63 1..User-Agent: c
0050: 75 72 6c 2f 37 2e 31 30 2e 37 20 28 77 69 6e 33 url/7.10.7 (win3
0060: 32 29 20 6c 69 62 63 75 72 6c 2f 37 2e 31 30 2e 2) libcurl/7.10.
0070: 37 20 4f 70 65 6e 53 53 4c 2f 30 2e 39 2e 37 61 7 OpenSSL/0.9.7a
0080: 20 7a 6c 69 62 2f 31 2e 31 2e 34 0d 0a 48 6f 73 zlib/1.1.4..Hos
0090: 74 3a 20 77 77 77 2e 62 69 73 79 73 2d 70 6c 61 t: www.bisys-pla
00a0: 6e 73 2e 63 6f 6d 0d 0a 50 72 61 67 6d 61 3a 20 ns.com..Pragma:
00b0: 6e 6f 2d 63 61 63 68 65 0d 0a 41 63 63 65 70 74 no-cache..Accept
00c0: 3a 20 69 6d 61 67 65 2f 67 69 66 2c 20 69 6d 61 : image/gif, ima
00d0: 67 65 2f 78 2d 78 62 69 74 6d 61 70 2c 20 69 6d ge/x-xbitmap, im
00e0: 61 67 65 2f 6a 70 65 67 2c 20 69 6d 61 67 65 2f age/jpeg, image/
00f0: 70 6a 70 65 67 2c 20 2a 2f 2a 0d 0a 43 6f 6e 74 pjpeg, */*..Cont
0100: 65 6e 74 2d 4c 65 6e 67 74 68 3a 20 33 36 0d 0a ent-Length: 36..
0110: 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 61 70 Content-Type: ap
0120: 70 6c 69 63 61 74 69 6f 6e 2f 78 2d 77 77 77 2d plication/x-www-
0130: 66 6f 72 6d 2d 75 72 6c 65 6e 63 6f 64 65 64 0d form-urlencoded.
0140: 0a 0d 0a 42 69 72 74 68 44 61 74 65 3d 30 39 2f ...BirthDate=01/
0150: 31 38 2f 31 39 37 30 26 4d 59 41 43 54 49 4f 4e 01/1975&MYACTION
0160: 3d 53 75 62 6d 69 74 =Submit
Trace from Linux Box:
0000: 50 4f 53 54 20 2f 73 6d 69 74 68 62 61 72 6e 65 POST /smithbarne
0010: 79 2f 69 6e 64 65 78 32 2e 63 66 6d 3f 53 53 4e y/index2.cfm?SSN
0020: 3d 34 33 34 36 31 32 35 39 31 20 48 54 54 50 2f =555555555 HTTP/
0030: 31 2e 31 0d 0a 55 73 65 72 2d 41 67 65 6e 74 3a 1.1..User-Agent:
0040: 20 63 75 72 6c 2f 37 2e 31 30 2e 37 20 28 69 36 curl/7.10.7 (i6
0050: 38 36 2d 70 63 2d 6c 69 6e 75 78 2d 67 6e 75 29 86-pc-linux-gnu)
0060: 20 6c 69 62 63 75 72 6c 2f 37 2e 31 30 2e 37 20 libcurl/7.10.7
0070: 4f 70 65 6e 53 53 4c 2f 30 2e 39 2e 36 62 20 7a OpenSSL/0.9.6b z
0080: 6c 69 62 2f 31 2e 31 2e 34 0d 0a 48 6f 73 74 3a lib/1.1.4..Host:
0090: 20 77 77 77 2e 62 69 73 79 73 2d 70 6c 61 6e 73 www.bisys-plans
00a0: 2e 63 6f 6d 0d 0a 50 72 61 67 6d 61 3a 20 6e 6f .com..Pragma: no
00b0: 2d 63 61 63 68 65 0d 0a 41 63 63 65 70 74 3a 20 -cache..Accept:
00c0: 69 6d 61 67 65 2f 67 69 66 2c 20 69 6d 61 67 65 image/gif, image
00d0: 2f 78 2d 78 62 69 74 6d 61 70 2c 20 69 6d 61 67 /x-xbitmap, imag
00e0: 65 2f 6a 70 65 67 2c 20 69 6d 61 67 65 2f 70 6a e/jpeg, image/pj
00f0: 70 65 67 2c 20 2a 2f 2a 0d 0a 43 6f 6e 74 65 6e peg, */*..Conten
0100: 74 2d 4c 65 6e 67 74 68 3a 20 33 36 0d 0a 43 6f t-Length: 36..Co
0110: 6e 74 65 6e 74 2d 54 79 70 65 3a 20 61 70 70 6c ntent-Type: appl
0120: 69 63 61 74 69 6f 6e 2f 78 2d 77 77 77 2d 66 6f ication/x-www-fo
0130: 72 6d 2d 75 72 6c 65 6e 63 6f 64 65 64 0d 0a 0d rm-urlencoded...
0140: 0a 42 69 72 74 68 44 61 74 65 3d 30 39 2f 31 38 .BirthDate=01/01
0150: 2f 31 39 37 30 26 4d 59 41 43 54 49 4f 4e 3d 53 /1975&MYACTION=S
0160: 75 62 6d 69 74 ubmit
--- Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Fri, 31 Oct 2003, James Clancy wrote:
>
> > Hi. I'm using curl 7.10.2 on a Windows machine and have written a
>
> [snip]
>
> > What I don't understand is why it works on the Windows machine and
> not the
> > Linux machine. (By the way, I'm using curl 7.10.7 on the Linux
> box.)
>
> 1. What if you use 7.10.7 on the windows box, does that work?
>
> 2. What if you use --trace on all invokes on both machines and
> compare the
> traced outputs, does that reveal any differences that might
> explain this?
>
> --
> Daniel Stenberg -- curl: been grokking URLs since 1998
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
Received on 2003-10-31