0

I want to send multiple requests to a website using requests.post. How can I do this? Do I have to use range() or should I use something else?

Here is my source code:

requests.post(url, allow_redirects=False, data={
    '{usernameInput}': username,
    '{passwordInput}': password
})
DV82XL
  • 5,350
  • 5
  • 30
  • 59
xKwm1
  • 19
  • 1
  • Each call to `requests.post` represents one HTTP exchange, out and back. Do you want to send N identical requests? (If so, why?) Or do you want to send N different requests? – Tim Roberts Apr 05 '21 at 03:08
  • Please refer to the answer [here](https://stackoverflow.com/questions/15752973/python-how-can-i-send-multiple-http-requests-at-the-same-time-like-fork). – Ravi Jain Apr 05 '21 at 03:12

0 Answers0