cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl command line options

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 3 Aug 2001 16:06:29 +0200 (MET DST)

On Thu, 12 Jul 2001 TarquinBell_at_netscape.net wrote:

> curl -s -d searchtype=@srctyp -d queryvalue=@srcno -d "action=Search"
> http://www.ato.gov.au/scripts/super//search.asp > atoresult
>
> I have had the retreival work when the values are hard coded but I want
> to be able to pass these values as files "srctyp" and "srcno". I used the
> syntax as shown in an example for the -F option.
>
> Is this syntax not available for -d ?

Not exactly like that, no. Instead, use this approach:

  curl -s -d @srctyp -d @srcno -d "action=Search" [URL]

It takes the whole thing from a file, not just the part on the right side of
the '='.

-- 
     Daniel Stenberg -- curl dude -- http://curl.haxx.se/
Received on 2001-08-03