cURL / Mailing Lists / curl-users / Single Mail


Re: post httpd data from stdin

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

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

$ echo -e "data....\n---" | lynx -dump -post_data
$ echo -e "data...\n" | curl --url -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
> post data from stdin!
Received on 2002-01-21