cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Multiple options (-K & -d)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 20 Jan 2009 11:17:57 +0100 (CET)

On Tue, 20 Jan 2009, Ravi Karatagi wrote:

> How to use the options -K and -d together? i.e I have a config file and also
> want to send values (name-value pair) with the url.

They're completely independent. like:

   curl -K config -d shoesize=9 http://shoestore.com/

... where the config file can consist of whatever options you like. If the
config file itself has a -d (or equivalent), the one of the command line will
be appended to the data you set in the config file. Or vice versa, depending
on the order of the command line options.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-01-20