Advertisement
ptanon

Untitled

Jul 30th, 2015
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.64 KB | None | 0 0
  1. #!/usr/bin/python2
  2. import requests
  3.  
  4. def print_response(request):
  5.     print request.text
  6.     print "#"*50
  7.     print request.content
  8.     print "#"*50
  9.     print request.headers
  10.     print "#"*50
  11.     print request.status_code
  12.    
  13.    
  14. def main():
  15.     params = {"board" : "stxt",
  16.             "replythread" : "0",
  17.             "MAX_FILE_SIZE" : "1024000",
  18.             "email" : "",
  19.             "subject" : "more testing3",
  20.             "name" : "ads",
  21.             "em" : "asd@gmail.com",
  22.             "submit" : "Submit",
  23.             "postpassword" : "test",
  24.             "message" : "feel free to remove this"}
  25.  
  26.     r2 = requests.post('http://kusabax.cultnet.net/board.php', files=params)
  27.     print_response(r2)
  28.  
  29. if __name__ == "__main__":
  30.     main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement