|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
Get a web page and store in a local file:
curl -o page.html Example Web Page Get a web page and store in a local file, make the local file get the name of the remote document: curl -O Example Web Page |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
thanks a lot it worked exactly like I was hoping
) |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| "sed" to check file size & echo " " to destination file | jockey007 | Shell Programming and Scripting | 7 | 04-28-2009 02:08 AM |
| VMDB Failure" followed by "Unable to open snapshot file" | s_linux | SuSE | 0 | 02-10-2009 11:01 AM |
| How to cut a file using " ", but fields can be separated with more than one " " | shira | Shell Programming and Scripting | 12 | 01-26-2009 03:45 PM |
| let curl output to stdout AND save to a file | scarfake | Shell Programming and Scripting | 3 | 05-31-2008 04:16 PM |
| Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" | Lokesha | UNIX for Dummies Questions & Answers | 4 | 12-20-2007 12:52 AM |
|
|