cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: How must I use the -G option?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 19 Jun 2002 09:10:11 +0200 (MET DST)

On Tue, 18 Jun 2002, Oriol Magrané wrote:

> I don't know how can I fetch an URL by GET method with curl's -G option.
> i.e. I type this:
>
> curl -d "q=hello" -G "http://www.google.com"
>
> and it says me "You can only select one HTTP request!"
> So... can anybody tell me what I'm doing wrong? Isn't it the right
> syntax for doing a GET request?

You're using a version of curl where this is broken. Try upgrading to a more
recent version.

Another way of doing this request is of course:

 curl "http://www.google.com/?q=hello"

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
----------------------------------------------------------------------------
                   Bringing you mounds of caffeinated joy
                   >>>     http://thinkgeek.com/sf    <<<
Received on 2002-06-19