On 11 May 2017, at 19:30, Joshua M. Clulow wrote:
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
Another "curl" resource is "The Art Of Scripting HTTP Requests Using
Curl"
https://github.com/curl/curl/blob/master/docs/TheArtOfHttpScripting
-------------------------------------------
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