curl is a tool to transfer data from or to a server, using one of the supported protocols (HTTP, HTTPS, FTP, FTPS, TFTP, DICT, TELNET, LDAP or FILE). The command is designed to work without user interaction.
curl "http://myserver/" curl "http://myserver/" --head curl -I "http://myserver/"
-I will just display the response headers.
To download a file:
curl -O http://server/repository/appname-0.2.jar
or - how about these options (I don’t know what they do)?:
curl -C - -O http://www.mirror.com/path/to/file.zip
curl -H 'X-Requested-With: XMLHttpRequest' http://localhost:8000/item/123/
I think an HTTP GET request is as simple as doing: