Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from http.server import HTTPServer, BaseHTTPRequestHandler
- class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
- def do_GET(self):
- self.send_response(200)
- self.end_headers()
- self.wfile.write(b'OK')
- *** Put here your command ***
- httpd = HTTPServer(('localhost', 8000), SimpleHTTPRequestHandler)
- httpd.serve_forever()
- wget http://B's IP address:8000
- curl http://B's IP address:8000
Add Comment
Please, Sign In to add comment