Wget

From NovaOrdis Knowledge Base
Revision as of 18:51, 4 January 2017 by Ovidiu (talk | contribs) (Created page with "=Internal= * curl =Install from Scratch= <pre> yum install wget </pre> =Install on Mac= ==Preferred== <pre> brew install wget </pre> ==Alternative== {{External|htt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Install from Scratch

yum install wget

Install on Mac

Preferred

brew install wget

Alternative

http://coolestguidesontheplanet.com/install-and-configure-wget-on-os-x/

This worked:

cd /usr/local/src
curl -O http://ftp.gnu.org/gnu/wget/wget-1.15.tar.gz
gunzip < wget-1.15.tar.gz | tar xfv -
cd wget-1.15
./configure --with-ssl=openssl
make
make install


It will install in /usr/local/bin.

!!!Download a file locally

Specify the file name with -O

{{{

   wget -O agent.jar http://10.153.173.18:7080/agentupdate/download 
    

}}}


!!!Don't write the file on disk

The dash after -O:

{{{

    wget  -O - http://localhost/servlet01

}}}


!!!Display the whole HTTP response

{{{

    wget -S ...

}}}


!!!Sending POST with wget

{{{

wget -O - \ --post-data 'creditCardNumber=4111111111111111&buyerCountry=US&buyerLastName=Estrada&creditCardType=VISA' \ http://www-stage.squaretrade.com/warrantyservice/warranty

}}}

__Referenced by:__\\ [{INSERT com.ecyrd.jspwiki.plugin.ReferringPagesPlugin WHERE max=20, maxwidth=50}]