On 11 May 2017 at 06:27, Ján Poctavek <[email protected]> wrote:
> If you need only to check if webserver is working, you can do it also from 
> command line:
>
> #> telnet <www.yourweb.tld> 80
> GET / HTTP/1.1
> Host: www.yourweb.tld
> (end with two enters)
>
> You should see a long html printing or 302 (redirect). In case of 302, adjust 
> the path from "/" to whatever you need in url.
>
> If you have https, use this to connect:
> #> openssl s_client -connect www.yourweb.tld:443

I think, in both cases, it would be easier to just use "curl".  See also:

    https://smartos.org/man/1/curl

-- 
Joshua M. Clulow
UNIX Admin/Developer
http://blog.sysmgr.org


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to