curl-users
Re: Trouble with posting xml to windows server
Date: Wed, 12 Feb 2003 23:21:06 +0100
No. I have tried that to. And --data-binary and --data-ascii. Then the
server responds that it did not get anything. Well, not where it expect
it to anyway. It responds that it has received the number of bytes that
seems correct but that the file is empty. Any other suggestions? Or is
this a situation where MS might be doing something slightly besides the
standards?
/Petter
On onsdag, feb 12, 2003, at 22:59 Europe/Stockholm, Roth, Kevin P.
wrote:
> 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
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-02-12