Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Nov 292010
 

How to simulate curl using wget command?

Answer:

To simulate a simple curl command using wget, e.g. curl http://www.google.co.uk:

# wget -O- http://www.google.co.uk

To view the HTTP response header (i.e. more verbose), e.g. curl -v http://www.google.co.uk:

# wget -O- -S http://www.google.co.uk