Check that a web server responds to HTTPS and observe the returned HTTP code.
Steps….
- Use Power Shell – Open Windows Terminal…
- Send a HEAD query — Use Invoke-Web (1992) with Head method.
- Read StatusCode — 200 usually indicates a successful response, but other codes may be normal depending on the site.
- Test for connectivity if necessary — Test port 443 with Test-Net-Grision.
Commands
Invoke-WebRequest https://boiteaoutilsinformatique.fr -Method Head
Test-NetConnection boiteaoutilsinformatique.fr -Port 443
Key takeaways
- An open port 443 does not validate the certificate or the application operation alone.
- The 301/302 can be normal.