cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Command Line POST question

From: Ki <ki_at_cloudfactory.org>
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.
</BODY></HTML>

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

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

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

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET