title: Python: Send multiple POST requests on the same page
body: <p>Is it possible to send multiple HTTP POST requests to a server using selenium webdriver?</p>
  
  <p>If, for example the user IDs are auto-incremented and the first 1000 followers had followed me, would it be possible to run something like the following on a site where POST requests dont return a reload:</p>
  
  <p>** The website obviously requires the user to be signed in to do such actions hence the selenium approach.</p>
  
  <pre><code>driver = webdriver.Firefox()
  driver.get("http://example.com/myfollowers")
  
  for userid in range(1, 1001):
      driver.post("http://example.com/unfollow/{}".format(userid))
  
  driver.close()
  </code></pre>
  
  <p>Below is a snippet example of the Post request made to a site. </p>
  
  <pre><code>General:
  Request URL:http://example.com/unfollow/1
  Request Method:POST
  Status Code:200 OK
  Remote Address:192.168.1.1:80
  Response Headers
  
  Request headers:
  Accept:*/*;q=0.5, text/javascript, application/javascript, application/ecmascript, application/x-ecmascript
  Accept-Encoding:gzip, deflate
  Accept-Language:en-US,en;q=0.8
  Connection:keep-alive
  Content-Length:0
  Cookie:ob-i=1; 
  Host:example.com
  Origin:http://example.com
  Referer:http://example.com/user/followings
  User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.26.02 Safari/537.36
  X-Requested-With:XMLHttpRequest
  </code></pre>