cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: help!, bad html form data

From: mrjosh at yahoo <mrjosh12_at_yahoo.com>
Date: Fri, 23 Aug 2002 13:27:36 -0700 (PDT)

All:
I finally figured out my curl problems. It was some perl escape characters '\' and a hidden form variable in the html page. I found this variable after playing with a macro tool called 'visual web task' - it listed the fields passed to the server from the browser.
Thanks for the help. -CarlS
 Daniel Stenberg wrote:On Sat, 17 Aug 2002, mrjosh at yahoo wrote:

> Im still stumped on this one. Heres my info.

You're not experiencing any pure curl problems (AFAICT). These are problems
with your environment and with the site your communicating with.

> Im using: curl/7.9.8 (win32) libcurl 7.9.8 (OpenSSL 0.9.6d), inside a
> Active State Perl script.

> $curlcall="curl --trace dump2.txt -A Mozilla/4.0 -v -b headers -d ";
> $upgraded = sprintf "%s%s%s%s%s%s%s%s%s%s%s",($curlcall,
> "'sessionid'=UPGRADE_CLASS_1=V&",
> "NUM_OF_SEG=",$num_seg,"&SEGMENT_NUMBER_1=1&","pnr=",$pnr,"&cmd=upgrade",
> "&UPGRADE_STATUS_1=Available", " --url " ,$result_url);

And none of these characters you pass to the -d is special to the shell
you're using so that they need to be within " or ' or otherwise escaped?

> Maybe Im missing something?? I tried encoding the > but curl blow up. Any ideas?

blow up? What does that mean?

I know for a fact that % needs escape on the Windows/DOS command line, I
trust you took care of that issue.

-- 
Daniel Stenberg -- curl related mails on curl related mailing lists please
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
---------------------------------
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
Received on 2002-08-23