cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: how to use the -b option with.....

From: Roth, Kevin P. <KPRoth_at_MarathonOil.com>
Date: Mon, 23 Sep 2002 12:12:28 -0400

The option -b is for adding *cookies*. But you need to add query-string parameters.

There are (at least) two different ways:

1: curl "http://www.example.com/acuerdos/test.asp?send_juz=HOLA%20LUIS"

2: curl -G -d "send_juz=HOLA%20LUIS" http://www.example.com/acuerdos/test.asp
 
   (the -d adds POST parameters to the request, and the -G instructs
    curl to add them as GET parameters instead)

--Kevin

-----Original Message-----
From: alsarkis_at_bil.com.mx [mailto:alsarkis_at_bil.com.mx]
Sent: Monday, September 23, 2002 11:28 AM
Subject: how to use the -b option with.....

In my IE show like this (and works OK):

http://www.example.com/acuerdos/test.asp?send_juz=HOLA%20LUIS

But when I try to use curl does not work

I tried with this:

A) curl -b "send_juz=HOLA LUIS" http://www.example.com/acuerdos/test.asp

B) curl -b "send_juz=HOLA%20LUIS" http://www.example.com/acuerdos/test.asp

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-09-23