cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl POST difficulties

From: Brian Dessent <brian_at_dessent.net>
Date: Thu, 15 Dec 2005 18:43:59 -0800

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