Call: (480) 382-8464

View HTTP Headers with Wget

View HTTP Headers with WGET

There are tools like curl, fiddler2, httpwatch, and of course wireshark that will show greater details, but if you don’t have these available, or are looking for a simple way to get debug http headers – you can use wget:


wget -SO- -T 5 -t 1 http://google.com

You can then search for whatever you may be looking for:


wget -SO- -T 5 -t 1 http://google.com 2>&1 | egrep "expression"



wget http response headers

Other useful wget commands for http debugging:

  • –keep-session-cookies
  • –save-cookies file.txt
  • –load-cookies file.txt
  • –http-user=user
  • –http-password=password
  • –no-cache
  • –user-agent=
  • –no-check-certificate
  • –secure-protocol=SSLv3|TLSv1

Wget Error Codes:

  • 0 No problems occurred.
  • 1 Generic error code.
  • 2 Parse error—for instance, when parsing command-line options, the .wgetrc or .netrc…
  • 3 File I/O error.
  • 4 Network failure.
  • 5 SSL verification failure.
  • 6 Username/password authentication failure.
  • 7 Protocol errors.
  • 8 Server issued an error response.

lower-numbered exit codes take precedence over higher-numbered ones, when multiple types of errors are encountered.

Note that you can also use Telnet to Troubleshoot headers too.

Tags: , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

Main Offers/Services

Hosting and website related services offered by Digital Crunch:



Managed VPS Hosting

Server Updates, Module/Software Installs, Firewall, Security, Hosting Management, Wordpress - let us manage it for you

Hosted Email

Setup and Maintain Business Class, Secure Email Hosting including spam protection and 25GB of storage space

Linux Consulting

Server Updates, Module/Software Installs, Firewall, Security, Hosting, Wordpress and Apps, anything related to Linux

Email Marketing Services

We broadcast your content to your list, capture leads for you, follow up on schedules, make more sales for you

Website Maintenance

Content updates, menu changes, graphics changes, adding content, getting links, building traffic, building sales funnels

Hosting Tutorials

Tutorials we've written for other customers that like to get their hands dirty and learn about hosting