mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-26 10:50:22 +00:00
A new cgi-bin directory is created to identify the scripts to be run by http.server.CGIHTTPRequestHandler.
11 lines
175 B
Python
Executable file
11 lines
175 B
Python
Executable file
#!/usr/bin/python3
|
|
|
|
import cgi
|
|
from http import cookies
|
|
|
|
form = cgi.FieldStorage()
|
|
C = cookies.SimpleCookie()
|
|
for field in form:
|
|
C[field] = form.getvalue(field)
|
|
|
|
print(C)
|