Advertisement
logicmoo

Untitled

May 3rd, 2018
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 1.16 KB | None | 0 0
  1. root@gitlab:~# swipl
  2.  
  3. ?- use_module(library(http/thread_httpd)),use_module(library(http/http_dispatch)),call(http_server,http_dispatch, [port('10.0.0.180':5580)]).
  4. % Started server at http://10.0.0.180:5580/
  5. true.
  6.  
  7. ?-
  8.  
  9.  
  10. root@gitlab:/opt/logicmoo_workspace/packs_sys/logicmoo_base/t# telnet localhost 5580
  11. Trying ::1...
  12. Trying 127.0.0.1...
  13. telnet: Unable to connect to remote host: Connection refused
  14. root@gitlab:/opt/logicmoo_workspace/packs_sys/logicmoo_base/t#
  15. root@gitlab:/opt/logicmoo_workspace/packs_sys/logicmoo_base/t# telnet 10.0.0.180 5580
  16. Trying 10.0.0.180...
  17. Connected to 10.0.0.180.
  18. Escape character is '^]'.
  19. GET*/*
  20. HTTP/1.1 404 Not Found
  21. Date: Fri, 04 May 2018 02:58:09 GMT
  22. Connection: close
  23. Content-Length: 339
  24. Content-Type: text/html; charset=UTF-8
  25.  
  26. <!DOCTYPE html>
  27. <html>
  28. <head>
  29. <title>404 Not Found</title>
  30.  
  31. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  32.  
  33. </head>
  34. <body>
  35.  
  36. <h1>Not Found</h1>
  37.  
  38. <p>
  39. The requested URL <tt>*/*</tt> was not found on this server</p>
  40.  
  41. <address>
  42. <a href="http://www.swi-prolog.org">SWI-Prolog</a> httpd at gitlab
  43. </address>
  44.  
  45. </body>
  46. </html>
  47. Connection closed by foreign host.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement