cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: AW: Trouble with a form

From: Gary <listgj-curl_at_yahoo.co.uk>
Date: Thu, 24 May 2012 09:56:36 +0100 (BST)

"Alexander.Elgert_at_t-systems.com" <Alexander.Elgert_at_t-systems.com> wrote:

> Hmm, you have to respect the fact, that $ is a metacharacter of the shells and protect it from evaluation.

Doh! Damnit, I *knew* that!

> Then you have to do simulate the button press, but it is done in javascript, maybe you can just do a
> --form press=ok
> which hopefully may just do the submit, even if the button is missing.

I had to fill in the __EVENTTARGET with the value

ctl00$ContentPlaceHolderMain$Save (or rather,
'ctl00$ContentPlaceHolderMain$Save' ;-) and end the command with the
aspx URL (http://blah/upload.aspx - the file indicated in the "action"
of the form.

> I would suggest you to use webscarab as a proxy in the middle, to see what happens exactly.
> Then you are able to compare the requests of the curl and the browser client more easily.

Yes, that was the best advice I've ever received on a mailing list!

Thanks for your help :-)

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-05-24