Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@gitlab:~# swipl
- ?- use_module(library(http/thread_httpd)),use_module(library(http/http_dispatch)),call(http_server,http_dispatch, [port('10.0.0.180':5580)]).
- % Started server at http://10.0.0.180:5580/
- true.
- ?-
- root@gitlab:/opt/logicmoo_workspace/packs_sys/logicmoo_base/t# telnet localhost 5580
- Trying ::1...
- Trying 127.0.0.1...
- telnet: Unable to connect to remote host: Connection refused
- root@gitlab:/opt/logicmoo_workspace/packs_sys/logicmoo_base/t#
- root@gitlab:/opt/logicmoo_workspace/packs_sys/logicmoo_base/t# telnet 10.0.0.180 5580
- Trying 10.0.0.180...
- Connected to 10.0.0.180.
- Escape character is '^]'.
- GET*/*
- HTTP/1.1 404 Not Found
- Date: Fri, 04 May 2018 02:58:09 GMT
- Connection: close
- Content-Length: 339
- Content-Type: text/html; charset=UTF-8
- <!DOCTYPE html>
- <html>
- <head>
- <title>404 Not Found</title>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8">
- </head>
- <body>
- <h1>Not Found</h1>
- <p>
- The requested URL <tt>*/*</tt> was not found on this server</p>
- <address>
- <a href="http://www.swi-prolog.org">SWI-Prolog</a> httpd at gitlab
- </address>
- </body>
- </html>
- Connection closed by foreign host.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement