Questions tagged [basehttprequesthandler]
74 questions
0
votes
1 answer
python3 HTTPServer/BaseHTTPRequestHandler output stream issue
I have faced an issue with a built-in python3 http.server module. Specifically, wfile.write() method in BaseHTTPRequestHandler class.
I'm trying to send an html form pre-defined as a string to a client with a GET request. The output stream to the…

Vadim
- 1
- 1
- 3
0
votes
0 answers
Send a flag from a HTTP Server to Client python
I have a basic HTTP server-client written in Python wherein the server has different modules (campaigns) to run. I want the client to interact with the server only when a certain campaign is up. I was thinking I could maybe create a flag whose value…

Nomi
- 11
- 2
0
votes
1 answer
Python3 passing a queue to a multi-threaded HTTP server class
I will be the first to admit that I am still relatively new to Python. This board has been a lot of help...
I am working on a project where I am using a multi-threaded HTTP server and i need to send a signal back to the main loop. I am trying to…

Ken S
- 1
- 2
0
votes
1 answer
BaseHTTPServer POST request - Connection Reset
I am building a simple Python tool that takes GPS coordinates from an external receiver via COM port and translates it to a JSON string like is returned by Google Geolocation API. The purpose is to replace the Google Geolocation provider URL in…

PhilippNagel
- 70
- 1
- 15
0
votes
1 answer
Add https redirect in Python3 Mockserver
we have this mockserver that is now serving https:// requests, and if we remove the ssl wrapping (ssl.wrap_socket(myServer.socket,keyfile='key.pem',certfile= 'cert.pem', server_side=True), the server only serves http:// requests. Is there any way…

nhrcpt
- 862
- 3
- 21
- 51
0
votes
1 answer
I do not know how to check the results. (BaseHTTPRequestHandler)
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
class aaa(BaseHTTPRequestHandler):
def do_GET(self):
self.wfile.write("Hello World")
if __name__ == "__main__":
server = HTTPServer(("", 8888), aaa)
…

신재현
- 1
- 1
0
votes
1 answer
How to measure RTT using python httplib, Httpserver
I made an HTTP proxy using the httplib and BaseHTTPServer, Now I want to know if there is way that I can calculate the RTT to each server. I don't want to use ping method because I want to calculate the RTT for each object's server passing through…

user4993781
- 3
- 7
0
votes
1 answer
Python: Retrieve POST response from BaseHTTPRequestHandler
I'm trying to retrieve the response after a POST request with Python using a BaseHTTPRequestHandler. To simplify the problem, I have two PHP files.
jquery_send.php