Main Menu

Search

LINUX - HOW TO CHECK IF HTTPS URL / HTTP URL IS ACCESSIBLE FROM LINUX HOST

Following are two methods on how to check if HTTP / HTTPS URL is accessible from Linux Host.
 
Method 1
 
Below nc command can be used.
 
# nc -zv linuxtesthost 9443
 
Below is sample output.
 
Connection to linuxtesthost 9443 port [tcp/*] succeeded!
 
Method 2
 
Below wget command can be used.
 
Below is sample output.

--2020-09-23 00:25:40-- https://linuxtesthost:9443/emoc
Resolving linuxtesthost... 10.XX.XX.208
Connecting to linuxtesthost|10.XX.XX.208|:9443... connected.
ERROR: cannot verify linuxtesthost's certificate, issued by `/OU=Systems Management/O=Oracle Inc./C=US/CN=linuxtesthost':
Self-signed certificate encountered.
To connect to linuxtesthost insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.
 
 

Products to which Article Applies

All Linux OS’s

Search Keywords:  nc zv curl wget 

Article Author: Tarun Boyella

No comments:

Post a Comment