Guest User

Untitled

a guest
Jan 17th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #!/usr/bin/env python3
  2. import cgi
  3.  
  4. print("Content-Type: text/plainn")
  5.  
  6. form = cgi.FieldStorage(keep_blank_values=1)
  7. print(*form)
  8.  
  9. $ python3 -mhttp.server --cgi --bind localhost
  10.  
  11. $ python -mwebbrowser "http://localhost:8000/cgi-bin/script.py?6&20&21&22&23"
  12.  
  13. 21 23 22 6 20
Add Comment
Please, Sign In to add comment