cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: post httpd data from stdin

From: Eric Wood <eric_at_interplas.com>
Date: Mon, 21 Jan 2002 14:02:43 -0500

Ah I didn't know about the '@'.

$ echo -e "data....\n---" | lynx -dump -post_data
https://www.ups.com/ups.app/xml/Rate
or
$ echo -e "data...\n" | curl --url https://www.ups.com/ups.app/xml/Rate -d
@-

I get the same result from the server saying my xml data was well form but
invalid. If I post my data using a filename or on the command line, I get
the desired results from ups.

My question (if I may ask) is, how can the ups server detect the difference
of how I'm posting the data to curl or lynx?

-eric wood

> "-d @filename" reads the post from a given file name, and "-d @-" reads
the
> post data from stdin!
Received on 2002-01-21