The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 07-05-2009
creamcheese creamcheese is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 4
curl: "save file as"

Hello,

I am having the following problem: I am downloading data from a web-server that is calculated with parameters supplied by a http post request.

When I use firefox, after submitting the data a window asks: "Save data as.....", is there an option with curl to automate this step and save the file into a directory.

So fare I use:


Code:
curl -d "y=1&x=3" http://www.xyz.com -o file1.txt

curl write the following at the end:


Code:
usage: write user [tty]

and the textfile contains one line:

Content-Type: text/plain

Any hints would be greatly appreciated!

Thanks in Advance