Open website without actually opening it in browser from terminal

terminal

Is it possible to open a website from terminal without it actually opening a new tab?

eg: open https://www.google.co.uk/ would open a new tab in the default application and go to that website.

I just want a command which mimics that call to the website but not open a tab or show anything.

Reason behind this is that I'm trying to call a command on a website, but don't want anything to pop up, I just want it to call the command.

Best Answer

You can use curl

curl https://www.google.co.uk/

and if you don't want the output

curl --silent https://www.google.co.uk/ > /dev/null