Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add password to HTTP.server
#1
I am playing about with the python 3 http server which works very well, but I need to add a simple user:password combination but have absolutely no idea how. Pointers most welcome. Thank you.


Quote:import http.server
import socketserver

PORT = 8080

Handler = http.server.SimpleHTTPRequestHandler

with socketserver.TCPServer(("", PORT), Handler) as httpd:
print("serving at port", PORT)
httpd.serve_forever()
Quote
#2
https://github.com/tianhuil/SimpleHTTPAu..._main__.py
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  FTP, HTTP or.....? floatingshed 3 244 Jul-04-2018, 03:40 AM
Last Post: Skaperen
  python -m http.server giving invalid syntax echowit 5 342 May-17-2018, 02:13 PM
Last Post: echowit
  Error getting HTTP 200 response with requests.get while wget works fine sonicblind 0 790 Oct-18-2017, 02:24 PM
Last Post: sonicblind
  Python 2 http networking problems, if any Aeneas 1 395 Sep-06-2017, 07:24 PM
Last Post: wavic
  newbie here - need help with building very basic http server BenSalem 0 311 Aug-14-2017, 08:06 AM
Last Post: BenSalem
  HTTP Header request, how to improve efficiency andreamoro 5 1,157 May-01-2017, 03:49 PM
Last Post: micseydel

Forum Jump:


Users browsing this thread: 1 Guest(s)