cURL / Mailing Lists / curl-users / Single Mail


Re: How must I use the -G option?

From: Daniel Stenberg <>
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 ""
> 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 ""

    Daniel Stenberg -- curl groks URLs --
                   Bringing you mounds of caffeinated joy
                   >>>    <<<
Received on 2002-06-19