curl-users
Re: post httpd data from stdin
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 19 Jan 2002 11:32:20 +0100 (MET)
Date: Sat, 19 Jan 2002 11:32:20 +0100 (MET)
On Fri, 18 Jan 2002, Eric Wood wrote:
> I can retrieve the results fine when I specify the data on the command
> line:
>
> $ curl --url https://www.ups.com/ups.app/xml/Rate -d '<?xml ....'
>
> But I'm wanting to give the data to curl via standard input. Can I do that?
Yes you can!
"-d @filename" reads the post from a given file name, and "-d @-" reads the
post data from stdin!
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/Received on 2002-01-19