cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Command Line POST question

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 2 Jul 2008 10:36:01 -0700

On Wed, Jul 02, 2008 at 10:27:40AM -0700, Ki wrote:
> well the problem is that the server is expecting "POST /wctp http/1.1"

What you're describing is a standard POST. No need for -X.

> if just post is used or the -X option not used at all it defaults to POST
> http/1.1.
>
> So my question is can you set the -X option using the command line to
> "POST /wctp http/1.1"? or is this not possible using the command line for
> curl?

The /wctp part comes from the URL. You just need a command like this:

curl -d foo=bar http://example.com/wctp

to generate that header.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2008-07-02