mirror of
https://github.com/3dmol/3Dmol.js.git
synced 2026-06-04 08:39:49 +09:00
13 lines
274 B
Python
Executable File
13 lines
274 B
Python
Executable File
#!/usr/bin/env python3
|
|
#fetchs a file - workaround for cross site scripting prevention
|
|
import cgi,requests,sys
|
|
|
|
|
|
form = cgi.FieldStorage()
|
|
url = form["url"].value
|
|
|
|
response = requests.get(url)
|
|
sys.stdout.write("Content-Type: text/text\n\n")
|
|
sys.stdout.write(response.text)
|
|
|