1. Home
  2. TroubleShooting
  3. How to use cURL to diagnose Site Issues

How to use cURL to diagnose Site Issues

Diagnosing whether a site is redirecting to HTTPS automatically.

We will be using the cURL utility to diagnose this issue. Please note that the utility is included in both Mac and Windows and you can access it by simply opening a command line interface.

To check this on a domain, go to a command line and type:

curl -I sitename

A correct result will look like this:

While an incorrect one will look like below:

200 is the OK response while 301 is the redirect response

Note: If a site has a Coming soon page, it should be returning a 503 status code to indicate the site should not be reindexed at that time. Google knows that when this status code is returned, it is to check the page again later on.

You can view more info about that here.

Updated on January 3, 2023

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? we’re here to help!
Contact Support


Get in touch with our support team.