Test connectivity for the web service: Difference between revisions

Jump to navigation Jump to search
m
Line 14: Line 14:
*# (after telnet-ed the web 80 port, key in) {{kbd_plus | key1 = get | key2 = SPACE}}<ref>[http://www.simplescripts.de/http-check-port-80-telnet-command.htm HTTP Check Port 80 with the Telnet Command]</ref>
*# (after telnet-ed the web 80 port, key in) {{kbd_plus | key1 = get | key2 = SPACE}}<ref>[http://www.simplescripts.de/http-check-port-80-telnet-command.htm HTTP Check Port 80 with the Telnet Command]</ref>


* curl: {{kbd | key = <nowiki>curl -v -o /dev/null http://IP:Port</nowiki>}} If failed. It will show the message: "failed: Connection refused"
* curl: {{kbd | key = <nowiki>curl -v http://IP:Port</nowiki>}} or {{kbd | key = <nowiki>curl -v -o /dev/null http://IP:Port</nowiki>}}  
** If failed. It will show the message: "failed: Connection refused"


* use the third-party website monitoring the services: [[Web Ping]]  
* use the third-party website monitoring the services: [[Web Ping]]  
Line 25: Line 26:
* (for python 2.x) {{kbd | key=<nowiki>python -m SimpleHTTPServer <port></nowiki>}}<ref>[https://docs.python.org/2/library/simplehttpserver.html 20.19. SimpleHTTPServer — Simple HTTP request handler — Python 2.7.17 documentation]</ref>
* (for python 2.x) {{kbd | key=<nowiki>python -m SimpleHTTPServer <port></nowiki>}}<ref>[https://docs.python.org/2/library/simplehttpserver.html 20.19. SimpleHTTPServer — Simple HTTP request handler — Python 2.7.17 documentation]</ref>
* (for python 3.x) {{kbd | key=<nowiki>python -m http.server <port></nowiki>}}<ref>[https://docs.python.org/3.8/library/http.server.html?highlight=http%20server#module-http.server http.server — HTTP servers — Python 3.8.1 documentation]</ref>
* (for python 3.x) {{kbd | key=<nowiki>python -m http.server <port></nowiki>}}<ref>[https://docs.python.org/3.8/library/http.server.html?highlight=http%20server#module-http.server http.server — HTTP servers — Python 3.8.1 documentation]</ref>


== Test connectivity for the local web service ==
== Test connectivity for the local web service ==
Anonymous user

Navigation menu