Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
0 votes
0 answers
193 views

I am using Python 3.9 on a Raspberry Pi. I'm using a http.server.ThreadingHTTPServer so that I can run other tasks concurrently while handling HTTP requests. My needs are simple, so I don't want to ...
Stewart Macfarlane's user avatar
0 votes
1 answer
135 views

I have an extremely simple http server setup for local testing: #!/usr/bin/env python from functools import partial from http.server import SimpleHTTPRequestHandler, test import os HTTP_DIR = os....
JoSSte's user avatar
  • 3,442
-1 votes
1 answer
156 views

I this is my java HTTP server: public class WebServer implements Runnable { public static final int PORT = 80; @Override public void run() { HttpServer $server; try { ...
Sus Amongus's user avatar
0 votes
1 answer
1k views

I'm trying to share a folder for anyone to access while running the code by making my local machine act as a server PORT = 8000 DIRECTORY = "/content/sample_data" class Handler(http.server....
Myelin's user avatar
  • 3
0 votes
0 answers
20 views

I'm trying to set up very basic http server on my hosting(centos) The script is: #!/usr/bin/env python3.8 from http.server import HTTPServer, BaseHTTPRequestHandler class SimpleHTTPRequestHandler(...
nachtblume's user avatar
0 votes
1 answer
1k views

I'm new to python and http.server, I'm doing a simple API which allow client to post an image and server can do something with that image. Below is my do_POST method: class Server(...
ohnoimdumb's user avatar
0 votes
0 answers
199 views

I am running a simple python webserver [SimpleHTTPServer] in my Linux . Wrote a python program to download all the files hosted in that server to my Windows Machine . But for some reason program is ...
teja_M19's user avatar
2 votes
0 answers
1k views

I have created python http server using http.server.SimpleHTTPRequestHandler, below is the code for it PORT = 8008 Handler = http.server.SimpleHTTPRequestHandler with socketserver.TCPServer(("&...
kailashdesiti's user avatar
4 votes
2 answers
5k views

Is it possible to serve not a index of a directory but rather an html file using Python SimpleHTTPServer on path '/'? Having directory with one file login.html serves a directory index on path '/'. ...
Milano's user avatar
  • 18.9k
1 vote
0 answers
318 views

I'm trying to access the directory listing of files from the http-server webserver listing configured on the localhost:4040. I have uploaded files using the http-server to mimic a file server for ...
Ben's user avatar
  • 11
0 votes
1 answer
2k views

I have this code httpd = HTTPServer(('127.0.0.1', 8000),SimpleHTTPRequestHandler) httpd.handle_request() httpd.handle_request() serves one request and then kills the server like intended. I want to ...
Stathis Kapnidis's user avatar
1 vote
0 answers
304 views

Good Morning/Afternoon/Evening all, I'm working on developing a fairly simple webpage, I have index.html setting up the appearance of the page and in the header I have a link to a js file: <script ...
jumper's user avatar
  • 83
0 votes
1 answer
2k views

I wrote a simple python http server to serve the files(folders) of the present working directory. import socketserver http='' def httpServer(hostIpAddress): global http socketserver.TCPServer....
Dennis Asamoah's user avatar
0 votes
1 answer
1k views

I am writing a GUI wrapper around Python’s SimpleHTTPServer. It looks like this: The GUI uses tkinter. When I click on the OK button, it launches the web server. The web server code is based on the ...
Manngo's user avatar
  • 17k
0 votes
2 answers
564 views

I'm doing the xss challenge on tryhackme.com (https://tryhackme.com/room/xss). The 7th task asks me to use a simple keylogger <script type="text/javascript">  let l = "";  ...
horse's user avatar
  • 501
1 vote
1 answer
3k views

I'm trying to implement an upload feature to the basic http.server Python module. So far, I've created a new class named SimpleHTTPRequestHandlerWithUpload which inherits from SimpleHTTPRequestHandler ...
m00nlightsh4dow's user avatar
1 vote
1 answer
2k views

I'm using BaseHTTPServer.BaseHTTPRequestHandler in order to implement my server. currently I repsonse to get request with merely binary data file. self.send_response(200) self.send_header("...
Zohar81's user avatar
  • 5,214
2 votes
1 answer
7k views

I'm using python3. I want to show a one page but I got 404 not found file: import pymysql.cursors import http.server import socketserver from furl import furl class MyServer(http.server....
S.M_Emamian's user avatar
  • 17.4k
0 votes
0 answers
135 views

I want to build a simple http server which receives list of text strings and sends simple dynamic html page which presents them in loop (similar to RSS) It works fine but now I want to control text ...
yes's user avatar
  • 1
8 votes
1 answer
18k views

I am going through a three.js example and when I use import within a javascript module I get the error: Loading module from “http://localhost:8000/build/three.module.js” was blocked because of a ...
Null Salad's user avatar
  • 1,070
1 vote
1 answer
1k views

I'm starting a HTTPServer object in a new thread: from http.server import HTTPServer, SimpleHTTPRequestHandler import threading with HTTPServer(("localhost", 8080), SimpleHTTPRequestHandler)...
xuhdev's user avatar
  • 9,594
0 votes
1 answer
665 views

from http.server import HTTPServer, SimpleHTTPRequestHandler import threading with HTTPServer(("localhost", 8080), SimpleHTTPRequestHandler) as httpd: threading.Thread(target=httpd....
xuhdev's user avatar
  • 9,594
0 votes
1 answer
133 views

I am building a simple server which responds to a GET request and sends html which contains table of utf-8 values. The table is created from json object by using pandas DataFrame and to_html method ...
yes's user avatar
  • 1
1 vote
1 answer
7k views

so I mounted an http server with python -m SimpleHTTPServer I get: Serving HTTP on 0.0.0.0 port 8000 ... But when I try to download with wget http://192.168.100.65:8000/tmp/postgres_default_pass.txt ...
Andres Pasquel's user avatar
0 votes
1 answer
177 views

I have HttpsServer: public void startHttpsServer() { try { httpsServer = com.sun.net.httpserver.HttpsServer.create(); httpsServer.bind(new InetSocketAddress(httpsPort),...
Леонид Дубравский's user avatar
1 vote
1 answer
52 views

When I do a http://localhost:8090/ Most of the files in the root directory are displayed: e.g. .js and .py . But all of the .wav files are omitted. When trying to access it directly: localhost:...
WestCoastProjects's user avatar
1 vote
1 answer
4k views

I would like to implement a web page in Python using ONLY the std library. I have done it in PHP but I want to do it in Python and it is very difficult to me to understand the documentation. This ...
user13142533's user avatar
0 votes
0 answers
1k views

I try opening a SimpleHTTPServer in windows and I can only access it with localhost:. This is what I get: python -m http.server 80 Serving HTTP on :: port 80 (http://[::]:80/) ... Notice that my ...
Jeff's user avatar
  • 1
4 votes
1 answer
4k views

I have python 3.8.1 installed on my Windows 10 PC. I run the following command from PowerShell in the directory I want to set as server python -m http.server 8000 I get the following response after ...
Ebrahim Karam's user avatar
1 vote
2 answers
2k views

I wonder if the below python code (specifically http server) ever crashes? Assuming that there is no grammer error in any of the library code(already compiled), what I think that handling the ...
eral's user avatar
  • 123
1 vote
1 answer
2k views

I am doing a pentesting challenge and I am working on one machine that requires gaining access through a Remote File Inclusion vulnerability. In the past I was able to get a webshell by including a ...
Thomas M's user avatar
2 votes
0 answers
274 views

The idea To speed up my development I want to automatically refresh the browser if I change the file test.html. My setup I'm on Linux and I start my server with python -m SimpleHTTPServer in a ...
Sr. Schneider's user avatar
19 votes
2 answers
23k views

I'm trying to write a simple server in python. I'm trying to import a few modules: from http.server import HTTPServer from http.server import SimpleHTTPServer Because the doc says it has been moved. ...
Danial's user avatar
  • 642
3 votes
1 answer
5k views

From other SO posts, it's clear how to serve content from a specific directory, and how to map an incoming path to different do_GET handlers. To expand on the second question in a way relating to ...
minghua's user avatar
  • 6,723
1 vote
1 answer
2k views

I am setting python local server using python -m SimpleHTTPServer, I made that server publicly available using ngrock and have some public IP address like http://2ee94---.ngrok.io. Now I am making the ...
Akshay Bande's user avatar
  • 2,605
0 votes
1 answer
225 views

I'm implementing an HTTP server using python BaseHttpServer. I have a queue that is shared by different threads. And each time my handler receives a request, it puts it into the shared queue. When ...
Patrick's user avatar
  • 687
0 votes
1 answer
160 views

Hey all I am creating a chat program that can handle multipule clients to one server. Everything works just as it should on the chat side. I can have 3 clients open and talking to each other and it ...
StealthRT's user avatar
  • 10.6k
1 vote
2 answers
1k views

I'm trying to link my style.css file to my index.html file. Both files are located in separate folders. Folder structure: /parent /src/index.html /css/style.css Codes that I have tried using: <...
Shaze's user avatar
  • 23
0 votes
0 answers
103 views

I have a simple http server hosted by an esp8266. I want to be able to write text to the web page that is displayed. However, I can't find an example of how to do this. Thanks for the help, just ...
CrazyGreninja 198's user avatar
0 votes
1 answer
1k views

I have wrote a website using html/css and javascript and I am running this site using a simple python script import http.server import socketserver PORT = 8000 Handler = http.server....
Karampistis Dimitrios's user avatar
1 vote
1 answer
2k views

(First time) I used python -m SimpleHTTPServer 8000 using python 2.7.15 to generate a web server for my simple JavaScript game (still learning), but it seems that it has some error, which makes the ...
Matthew Loh's user avatar
3 votes
1 answer
1k views

I want to use SimpleHTTPServer to serve my local site while I'm developing. I'm using basic javascript, HTML, and CSS. I have this kind of project structure: app (folder with src files) dist (build ...
NoobyAFK's user avatar
  • 317
0 votes
0 answers
402 views

I have just started to use SimpleHTTPServers, and I was wondering how I can modify the source files from another device that is on the network. I want to keep it as simple as possible (right now I am ...
Jack N's user avatar
  • 334
0 votes
1 answer
723 views

I'm initiating new AWS EC2 instance using terraform main.tf for Centos AMI. I'm able to create and connect the AWS instance. but I have below problem When, I start simple python 3 based http server ...
change198's user avatar
  • 2,125
1 vote
1 answer
1k views

I wrote the following code to accept a HTTP POST and then write out a temp file that includes the POST data and then send that temp file to a printer using subprocess and the UNIX lp command. from ...
Superdooperhero's user avatar
2 votes
2 answers
1k views

I've been searching for a solution to this but none helped me. Key points: OS: Ubuntu 18.04 File to run: /var/www/html/cgi_test/cgi-bin/hello.py (exists for sure) which python3: /usr/bin/python3 (OS ...
Hula Hula's user avatar
  • 573
0 votes
1 answer
3k views

Currently if I go to "http://localhost:8035/", I can see and have access to all the files, including root directory, client_files directory, and server_files directory(i.e. I have access to all files, ...
the_begging_beginner's user avatar
1 vote
0 answers
270 views

I have an Java Simple Java HTTPServer running on localhost. I exported my Java application as jar file. And I am running it from console by writing. This java HTTPServer can work on either the nodejs ...
Baltazar's user avatar
0 votes
0 answers
111 views

Is it possible to send binary data buffer via SimpleHTTPServer instead of a file? I'm generating some data that I rather not write to disk. If not is there any minimal python webserver that can do ...
Carl's user avatar
  • 733
4 votes
1 answer
3k views

I have been experimenting with some code from this forum. It has worked okay so far to receive pieces of json delivered in curl POST requests, but am now trying to send it a small .jpg file. It is ...
cardamom's user avatar
  • 7,511

1
2 3 4 5 6