cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: errors using cURL to submit a form and download a file

From: Maximilian Rausch <maxrausch_at_gmail.com>
Date: Wed, 29 Jul 2009 11:31:31 -0400

Thank you very much. That worked. With a firefox plugin I figured out the
URL change but I'm not sure why you need to split out each field with a
separate -d flag. Is there a way to combine all the form variables into one
string?

I also mailed http://cool.haxx.se/mailman/listinfo/curl-users but I received
no response.

On Wed, Jul 29, 2009 at 11:20 AM, Patrick Monnerat <
Patrick.Monnerat_at_datasphere.ch> wrote:

>
> Maximilian Rausch wrote:
>
> > curl -d
> 'qry=1&frmEffectiveDt=06%2F29%2F2009&FRMENDDT=07%2F30%2F2009&B1=Download
> ' https://www.gasnom.com/ip/southernpines/transposting.cfm?id=3
>
> You missed the form URL change:
>
> curl -d 'qry=1' -d 'frmEffectiveDt=06/29/2009' -d 'FRMENDDT=07/30/2009'
> -d 'B1=Download' 'https://www.gasnom.com/ip/southernpines/TRFT.cfm'
>
> does it.
>
> By the way, this is not the best list for the command line tool
> questions. You better try on
> http://cool.haxx.se/mailman/listinfo/curl-users
>
> Patrick
>
Received on 2009-07-29