cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl, javascript, and form submission

From: kap4lin <kap4lin_at_gmail.com>
Date: Sun, 8 Nov 2009 00:04:40 -0500

On Sat, Nov 7, 2009 at 10:58 AM, Kjell Ericson <Kjell.Ericson_at_haxx.se> wrote:
> On Fri, 6 Nov 2009, kap4lin wrote:
>
>> Now one thing I could not figure out: how do I fetch this content
>> data? That is GET instead of POST... I want to check whether enable=0
>> or enable=1... And then toggle it.
>
> Read this: http://curl.haxx.se/docs/httpscripting.html
>
> If you want to toggle parameters, then you just need to do that in your
> program.  Curl doesn't help you to "check" parameters, it will help you
> "set" the parameters when requesting a page.

Thanks Kjell:
So what do you suggest I use to extract a string similar to (what I
use for -d '...'):

"editRow=12&delrow=0&enable=0&..."

Then, I can use bash to "check" whether "enable=0" or "enable=1".

-- 
Regards
PK
--------------------------------------
http://counter.li.org  #402424
-------------------------------------------------------------------
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 2009-11-08