Archive

Posts Tagged ‘nix’

wget – HTTP request from command line

If you need to make a request via HTTP from Windows/*nix command line and obtain server response (example: you want to run some remote script via HTTP and then process its answer), there is a special utility exactly for this purpose. The utility called WGet:

http://www.gnu.org/software/wget/

In command line run: wget.exe http://somesite.com/script.php
As a result, server response will be stored in file. You can download files via HTTP in the same manner. Very convenient and useful tool.