cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: HTTP POST of XML Document

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 26 Nov 2001 16:55:25 +0100 (MET)

On Sun, 25 Nov 2001, Jack Wells wrote:

> I'm trying to send an XML document using HTTP POST. Following line works
> fine:
>
> curl -d "<?xml version=1.0?>" https://www.domain.com/xml/program
>
> How can I pass in a file containing the XML document for the '"-d"
> argument instead of the literal?

Use "curl -d @filename [URL]"

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2001-11-26