Don't talk nonsense, just go ahead!
Recently I encountered aardio requesting the header parameters.
Many old iron and experienced developers usually think that this is the request.
import inet.whttp;
whttp.headers="Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.12 Safari/537.36"
Taking this test directly, I always feel that this has been requested, but there is still no data. I struggled for a long time, looking for other reasons!
Since then, this bug has left a deep hole and waited for itself! He dug the hole himself and jumped in. Then climb out again and fill in by yourself! Haha!
I'm talking about myself! I was struggling for a day yesterday and was still looking for the cause. Looking back on it, I was looking for similar problems from others. Finally found a solution!
Actually like this
import inet.whttp;
whttp.addHeaders ="Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.12 Safari/537.36"
Finally, send the debugging data method
import string;
string.save("D:/go/addio/"+"test"+'.txt',s)
Where s is the data after the request, generally we use io.print(), console.log() to print and see it is not complete! You can try string.save