Hi!
My old script with mitmproxy 0.15 was works great, but when I switched to 1.0.2 version, duplicate and replay not works as I expected and I don’t know how fix it.
def makeDictAndRequest(data):
list = foo(data)
for item in list:
dict = createDict(item)
makeRequest(dict)
time.sleep(3)
makeRequest(dict):
global allData
nf = allData['flow'].copy() #Previos flow saved on allData global variable
newFlow = changeFlowRequest(nf, dict)
ctx.master.replay_request(newFlow)
The behaviour I want is make a new request per every item in list and every request is paused three seconds before the next request, but I get all requests without pause and without order.
How can I get pause between requests and in the same order in list.