cURL / Mailing Lists / curl-users / Single Mail


Re: curl works on one machine and fails on another.

From: David Seaman <>
Date: Fri, 31 Oct 2003 18:27:34 -0600


I see that you quoted most things in your curl commands, but not the
URLs. The last one has that "&" between the parameters, so it should
be in quotes, too. That would explain the PlanID being dropped in your
trace. I don't think "&" means anything special in Windows but in a Linux
shell it will separate commands.


> Date: Fri, 31 Oct 2003 09:57:32 -0800 (PST)

> Hi. I'm using curl 7.10.2 on a Windows machine and have written a
> script in Perl that uses "system" calls to curl to download my 401k
> data. The script works fine on the Windows machine. But, when I run
> the script on my Linux box, it is apparently corrupting the data sent
> to the server. The web server returns the following error as shown at
> the end of this e-mail.

> 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.) I'm certain this is not a perl problem.

> The resultant system calls from perl to curl are:

> curl -b BenefitAccessCookie.txt -c BenefitAccessCookie.txt -o
> outfile.html -L -d "username=namehidden&password=hiddenpassword"

> curl -b bisys-plans.txt -c bisys-plans.txt -o outfile.html -L -d
> "BirthDate=01/01/1975&MYACTION=Submit"

> curl -b bisys-plans.txt -c bisys-plans.txt -o 401K_Account_Summary.html
> -L

This email is sponsored by: Giveback Program.
Does help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here:
Received on 2003-11-01