cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Trouble with posting xml to windows server

From: Roth, Kevin P. <KPRoth_at_MarathonOil.com>
Date: Wed, 12 Feb 2003 16:59:32 -0500

I think -d is what you're looking for.

curl -d "@test.xml" "http://..."

- Kevin

-----Original Message-----
From: Petter Jönsson [mailto:petterj_at_mac.com]
Sent: Wednesday, February 12, 2003 2:28 PM
To: curl-users_at_lists.sourceforge.net
Subject: Trouble with posting xml to windows server

I am new to all this so I am not sure if I have overlooked something
simple or trying to do something impossible.

I am trying to communicate with an asp server that expects to get xml
files posted to it and respond with xml content. The windows
application that I am trying to mimic does this with an MS
ServerXMLHTTP object.
I have tried to use

curl -F "filename=@test.xml" "http://www.xxxxxxx.com/test.asp"

but it seems that the server is expecting to only get the file content:

<dialog><code>100</code><description>ok</description></dialog>

instead of:

--curlEtizwpuPcl6rIhGH0dSjgZe/MVq
Content-Disposition: form-data; name="filename"

<dialog><code>100</code><description>ok</description></dialog>
--curlEtizwpuPcl6rIhGH0dSjgZe/MVq--

that is what curl sends.
Is there some other encoding than multipart/form-data that I should use?

/Petter

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-02-12