The UNIX and Linux Forums  


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



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

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 03:08 AM
VMDB Failure" followed by "Unable to open snapshot file" s_linux SuSE 0 02-10-2009 12:01 PM
How to cut a file using " ", but fields can be separated with more than one " " shira Shell Programming and Scripting 12 01-26-2009 04:45 PM
let curl output to stdout AND save to a file scarfake Shell Programming and Scripting 3 05-31-2008 05:16 PM
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-20-2007 01:52 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:20 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0