cURL / Mailing Lists / curl-users / Single Mail


Command Line POST question

From: Ki <>
Date: Tue, 1 Jul 2008 15:33:52 -0700 (PDT)

hi all,
I need to POST an xml doct to a url using "POST /wctp http/1.1" method.

how do i do this using the command line?

when send with option "-X POST /wctp http/1.1"

i get the error: curl: (3) <url> malformed
curl: (6) Could not resolve host: HTTP; Host not foun
<HTML><HEAD><TITLE>Method Not Allowed</TITLE></HEAD>
<BODY><H1>Method Not Allowed</H1>
An error has occurred.

and when i send: -X "POST /wctp HTTP/1.1" i get:
<BODY><H1>Bad request</H1>
Your browser sent a query this server could not understand.

it appears that cURL only allow sending using a generic POST which
defaults to HTTP/1.1. any way to tweak this?

List admin:
Received on 2008-07-02