cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Saving a page returned from a cURL 'post'........

From: Dutcher, John <John_Dutcher_at_URMC.Rochester.edu>
Date: Thu, 28 Oct 2004 10:07:45 -0400

To be sure the manual is a good read.....
The issue came when using two codes (-d and -o)
whether the codes come together at the beginning
(-d -o) with the filename immediately following,
and then the HTTP URL which did not work; OR
to supply the -d code followed by the HTTP URL
then the -o code followed by the filename; which did
work.
-----Original Message-----
From: Bill Mercer [mailto:bmerc_at_nccer.org]
Sent: Thursday, October 28, 2004 9:51 AM
To: curl-users_at_cool.haxx.se
Subject: Re: Saving a page returned from a cURL 'post'........

>I assume I need to add an '-o' in the command, where does the file name
>for the returning html page go ???

If you want to specify the filename yourself, just put it after the -o
parameter like this: curl -o MyLocalFileName http://Some.Web.Server

Or, you can use the uppercase -O parameter, and it will automatically give
the returned file the name from the server.

You should probably read through the curl manual.
http://curl.haxx.se/docs/manual.html

Cheers,

Bill Mercer - National Center for Construction Education and Research
3600 NW 43rd St
Gainesville, Florida 32606
http://www.nccer.org
Phone 352-334-0911 Fax 352-334-0932
=============================================

                                       
Received on 2004-10-28