Navigation:  Command Line Applications > GetHTTP >

Usage

Top  Previous  Next

Command Line Parameters

 

gethttp [-f filename] [-u UserAgent] [http://]www.somehost.com/file.htm

 

-f filename

Instead of writing to a file with the name found in the URL use filename

-u UserAgent

Override the default user agent used by GetHTTP. This is useful for sites that use cloaking.

URL

The URL pointing to the file to download. The starting http:// is optional and can be left out

 

alert_or_warning_1_24_n_g

Please note that existing local files will be overwritten without a prompt.

 

Examples

 

Example 1: Download the file http://www.netikus.net/downloads/rpm_update.pl.gz

 

gethttp www.netikus.net/downloads/rpm_update.pl.gz

 

Example 2: Download the file http://www.netikus.net/downloads/getconfig.sh and save it locally as getconfig

 

gethttp -f getconfig http://www.netikus.net/downloads/getconfig.sh

 

Example 3: Download the document http://www.experts-exchange.com/Programming/System/Windows__Programming/MFC/Q_22133017.html and save it locally as answer.html

 

gethttp -u "Googlebot" -f answer.html  http://www.experts-exchange.com/Programming/System/Windows__Programming/MFC/Q_22133017.html

 

Sample Output

 

c:\>gethttp www.netikus.net/downloads/getconfig.sh

-------------------------------------------------------------

GetHTTP V1.1 by NETIKUS.NET [ compiled on Oct 23 2002 ]

                                 (nttoolkit@netikus.net)

-------------------------------------------------------------

Command-line utility to retrieve files over HTTP

 

Saved file "getconfig.sh" in current directory

Received 9.53 kb in 0.310 seconds (30.76 kb/sec)