cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

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

James,

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.

David

> 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"
> https://benefits.smithbarney.com/cgi-bin/slogin/login.cgi

> curl -b bisys-plans.txt -c bisys-plans.txt -o outfile.html -L -d
> "BirthDate=01/01/1975&MYACTION=Submit"
> https://www.bisys-plans.com/smithbarney/index2.cfm?SSN=555555555&PlanID=009999

> curl -b bisys-plans.txt -c bisys-plans.txt -o 401K_Account_Summary.html
> -L https://www.bisys-plans.com/smithbarney/html/account_adv.cfm

-------------------------------------------------------
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-11-01