cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Command Line POST question

From: Ki <ki_at_cloudfactory.org>
Date: Wed, 2 Jul 2008 10:40:30 -0700 (PDT)

you are correct. it worked. thanks!
\
On Wed, 2 Jul 2008, Dan Fandrich wrote:

> 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
>
-------------------------------------------------------------------
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