<< Click to Display Table of Contents >> Navigation: Network Tools > gethttp > Usage |
Command Line Parameters
gethttp /u <USER> /p <PASS> /proxyhost <proxyserver> /proxyport <proxy port> /proxyuser <proxy username> /proxypass <password for proxyuser> /i /q /a /r /t <timeout> /f <filename>
/u MyUser |
Authenticate as user MyUser to web page |
/p "my pass" |
Use specified password for /u option |
|
|
/proxyhost |
Host name or IP address of proxy server |
/proxyport |
IP port of proxy server |
/proxyuser |
Username for proxy server (if required) |
/proxypass |
Password for <proxyuser> |
|
|
/I |
Ignore SSL certificate warnings |
/r |
Resume transfer (if supported by remote host) |
/t <timeout> |
Connection timeout in seconds |
/q |
Quiet output |
/a |
Print HTTP headers |
/d |
Display content (instead of downloading) |
/f <filename> |
Store downloaded file in this local file |
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 /f answer.html http://www.experts-exchange.com/Programming/System/Windows__Programming/MFC/Q_22133017.html
Example 4: Display the most recent measurement of the average concentration of carbon dioxide in the atmosphere
gethttp /d http://www.hqcasanova.com/co2/
Sample Outputs
>gethttp www.netikus.net/downloads/getconfig.sh
Saved file "getconfig.sh" in current directory
Received 9.53 kb in 0.310 seconds (30.76 kb/sec)
>gethttp /d http://www.hqcasanova.com/co2/
410.20 ppm