Use the below command to ping google.com using curl from Linux and Windows C:\Users\p> curl -Is google.com HTTP/1.1 301 Moved Permanently Location: http://www.google.com/ Content-Type: text/html; charset=UTF-8 Date: Thu, 10 Mar 2022 10:55:40 GMT Expires: Sat, 09 Apr 2022 10:55:40 GMT Cache-Control: public, max-age=2592000 Server: gws Content-Length: 219 X-XSS-Protection: 0 X-Frame-Options: SAMEORIGIN