简体   繁体   中英

Request.post() method without waiting for response

i want to send this request but without waiting for a response:

requests.post(url=agregar, data=data, allow_redirects=False , headers=user_agent) 

how i do it?

You can make Asynchronous Method with async and await read about Asynchronous and Task I hope it helps you

You can use Threading.Thread class in python. https://docs.python.org/3/library/threading.html#threading.Thread

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM