Guest User

Untitled

a guest
Apr 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. from http.server import HTTPServer, BaseHTTPRequestHandler
  2.  
  3.  
  4. class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
  5.  
  6. def do_GET(self):
  7. self.send_response(200)
  8. self.end_headers()
  9. self.wfile.write(b'OK')
  10. *** Put here your command ***
  11.  
  12.  
  13. httpd = HTTPServer(('localhost', 8000), SimpleHTTPRequestHandler)
  14. httpd.serve_forever()
  15.  
  16. wget http://B's IP address:8000
  17.  
  18. curl http://B's IP address:8000
Add Comment
Please, Sign In to add comment