JSI Tip 8143. Freeware dHTTP.exe command-line utility can download a page or file from a Web site using the HTTP 1.1 protocol.

Jerold Schulman

June 10, 2004

1 Min Read
ITPro Today logo in a gray background | ITPro Today


Download dhttp.zip, unzip it, and copy the files into a folder that is in your PATH.

The dHTTP.txt file contains:

 =========================================================================
========================================================================= Occasionally I need to download a page or file from a web site.  Normally, I'd load the page/file in a browser and then save it.  But it's a pain to load a browser just to download a file. dHTTP will download a file from a web server using the HTTP 1.1 protocol. You can also download pages that are password protected. Syntax:  dhttp [username:password@]server[:port][/file] Download the default page for a web site:   dhttp www.cmdtools.com Download a specified file:   dhttp www.cmdtools.com/dhttp.zip Download a password protected file:   dhttp username:[email protected] Download a file on a different port:   dhttp www.domain.com:8080 You can specify a path and filename using the "o" option:   dhttp /oindex.html www.cmdtools.com Any header information returned by the web server is displayed on the screen and the data is written to a file. It should also work well in a network or timed script. This product is freeware.  There is no fee for personal use.  It may not be distributed as part of a commercial product without this original text file describing the product. If you have any comments or suggestions, please feel free to email me.  The latest version of this product may be downloaded from my web site at http://www.cmdtools.com/ Thanks! --Dave



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like