Curl baidu.com

Hihi

I am just wondering if anyone is familiar with a command that is run somewhere in the startup process of a raspberryshake which looks like this: curl -I www.baidu.com ?

What would be the purpose of such command?

regards

/palmi

1 Like

Hello palmi, and welcome back to the community!

That specific command is launched to achieve the following:

  • To check that an internet connection exists, the unit executes a curl download from www.google.com and www.baidu.com
  • NB, this function does not “send” any data to these internet entities; only requests a download of the web page to confirm connectivity.
  • The exact execution is:
myshake@raspberryshake:/opt $ curl -I www.baidu.com 2>/dev/null | head -1 
HTTP/1.1 200 OK
myshake@raspberryshake:/opt $

However, we are in the process of implementing a new check method that will make this one obsolete, so this check will be removed in a future release.

For anything else, I remain available.

1 Like