M
M
Microp2016-04-11 22:24:55
Python
Microp, 2016-04-11 22:24:55

How to get parameters from HTTP request in python?

There is code:
import http.server
class HttpProcessor(http.server.BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header('content-type','text/html')
self.end_headers()
serv = http.server.HTTPServer(("localhost", 9090), HttpProcessor)
serv.serve_forever()
Need to get request parameters correctly and beautifully?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2016-04-11
@deliro

Not necessary. But better, yes, right and beautiful.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question