cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl POST difficulties

From: Bret Rilling <lnxexpert_at_gmail.com>
Date: Thu, 15 Dec 2005 21:38:26 -0600

Brian, that is the second time you helped me out. Both times you have
been right on the money. Thanks a lot man, I was about to hang myself.

Here is the winning answer:
###########
curl -vvv --referer
"inventory.overture.com/d/searchinventory/suggestion/" --user-agent
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" -d "mkt=us" -d
"lang=en_US" -d "term=linux+servers" -d "x=7" -d "y=7"
http://inventory.overture.com/d/searchinventory/suggestion/
############

On 12/15/05, Brian Dessent <brian_at_dessent.net> wrote:
> Bret Rilling wrote:
>
> > The post script:
> > curl -vvv --referer
> > "inventory.overture.com/d/searchinventory/suggestion/" --user-agent
> > "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" -d
> > stst=@overture_post.txt
> ^^^^^^^^^^^^^^^^^^^^^^^
> That doesn't look right.
>
> > > stst=@overture_post.txtHTTP/1.1 200 OK
>
> It's sending this literal string. If you want it to read from the file
> you need "-d @overture_post.txt" without the stst junk. If stst is a
> field you want set then you need to set it in the file or in an
> additional -d.
>
> Brian
>
Received on 2005-12-16