Skip to main content
-2 votes
0 answers
73 views

I'd like to add a unit test for Go's http.Server.Shutdown() timing out, but there are no connections held open when the shutdown signal is sent, so it never gets to checking for timeouts, even though ...
theory's user avatar
  • 9,995
0 votes
0 answers
54 views

With Curl I get the data correcty, but after connection: command: curl https://172.17.0.1:8443 Result: <html> <data>....</data> ... curl: (56) OpenSSL SSL_read: error:0A000126:SSL ...
Am1's user avatar
  • 1
1 vote
1 answer
79 views

I am making a simple server in python using http.server package. My goal is to log the data of POST from client to server. The problem I am having is rfile.read() is delaying execution until next POST ...
Schrey's user avatar
  • 69
0 votes
1 answer
132 views

I'm trying to set up an HTTP and HTTPS server on a Go application using http.server with default http.ServeMux. Specifically, I want one listener to handle HTTP traffic and the other to handle HTTPS ...
Ankit Kumar's user avatar
0 votes
1 answer
90 views

I am testing the legacy CGI functionality of python http.server module by implementing a "hello world" alike example that sends data from a fictional "add customer" form from the ...
M.E.'s user avatar
  • 5,705
0 votes
1 answer
60 views

(I use Linux) The local IP of my PC is 172.16.1.2 ip a command returns 172.16.1.2 Then I can add another IP to the same network interface: ip addr add 192.168.1.10 dev eth0 now ip a command returns 2 ...
user19315471's user avatar
-1 votes
1 answer
107 views

I have the following python code to create a server. The prints are triggered when the server is run up outside a docker container but not when inside a container. I'd like to setup port forwarding ...
Joonas S's user avatar
1 vote
2 answers
140 views

So I have a basic http server running and for the most part it does what I want, but I want to improve on it. I am brand new to http.server and quite new to Python still. I have been able to print my ...
Z.Davey's user avatar
  • 69
1 vote
1 answer
73 views

I'm not very experienced with multiprocessing but today I tried making a small http+api server when I noticed I have to press the login button multiple times to get into my account, I tried to ...
Cosh Marius's user avatar
0 votes
0 answers
97 views

I would like to set up a test server using the http.server library. To set up a simple test server, we would commonly use the command python3 -m http.server <port> But I have to test, the ...
FDE's user avatar
  • 59
1 vote
1 answer
2k views

I have a bunch of files without extensions, so http.server is serving them all as application/octet-stream and this is causing problems... Rather than giving them extensions, I would like a way to ...
patrick's user avatar
  • 9,824
1 vote
0 answers
39 views

I have have tried this over and over again and still can't get it right. I have tried making my data.json a data.js file and that didn't work in chrome and got the first SS errors. Next I tried it on ...
Heather Black's user avatar
0 votes
0 answers
749 views

I've got a simple Python HTTP server application based on http.server.ThreadingHTTPServer, running in a Docker container. It works fine with Python 3.11, but under Python 3.12 aborts with the ...
Wolfram Rösler's user avatar
1 vote
1 answer
496 views

I have this super simple HTTP server to test some REST endpoints: import http.server class MyHandler(http.server.SimpleHTTPRequestHandler): def do_PUT(self): self.send_response(200) ...
Bart Friederichs's user avatar
0 votes
2 answers
240 views

I've created my own script based on Python http.server module. The main target of script is handling custom path "/files" to get list of files in JSON format. Parameter --protocol was added ...
Pavel's user avatar
  • 163

15 30 50 per page