Posts

Showing posts from May, 2021

Curl commands

curl  is a command-line utility for transferring data from or to a server designed to work without user interaction. With  curl , you can download or upload data using one of the supported protocols including HTTP, HTTPS,  SCP  ,  SFTP  , and  FTP  .  curl  provides a number of options allowing you to resume transfers, limit the bandwidth, proxy support, user authentication, and much more.   To Print the header: Use the  -I  option to fetch only the HTTP headers of the specified resource.      curl -Is http://linux.com/      curl -I --http2 https://www.ubuntu.com/ With Proxy: curl  supports different types of proxies, including HTTP, HTTPS and SOCKS. To transfer data through a proxy server, use the  -x  ( --proxy ) option, followed by the proxy URL.      curl -x 192.168.44.1:8888 http://linux.com/ With Proxy & Username/Password: If the proxy server requires au...