curl-users
Re: curl to POST to servlet without using a FORM
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 28 Jul 2003 08:54:45 +0200 (CEST)
Date: Mon, 28 Jul 2003 08:54:45 +0200 (CEST)
On Fri, 25 Jul 2003, Joe Ceklosky wrote:
> Is it possbile to POST to a URL using curl without using a form?
Indeed.
> I have a java servlet that reads XML from it's input stream and writes XML
> on it's output stream. Can curl be using to POST XML to this servlet?
Yes.
> If possbile, please cc my email address on the response.
You should probably need to use -d or the --data-binary command flags, and you
might want to use -H "Content-Type: text/xml" or similar.
-- Daniel Stenberg -- curl: been grokking URLs since 1998 ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01Received on 2003-07-28