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
})
2
  • 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? Commented Apr 5, 2021 at 3:08
  • Please refer to the answer here. Commented Apr 5, 2021 at 3:12

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.