in reply to Automate a http task (tokens included)
Your post doesn't have any clear cut thing that I can respond to in a Perl sense.
However, you appear to be asking about batch provisioning some kind of telecom device.
I would start with a google search on "huawei ont api".
I suspect that there is an efficient way to configure 1,000 of these things in one batch.
The first google hit I got claims: "Huawei-Ont-Provisioning. Python3 script for mass provisioning ont for huawei olt using telnet."
Look for an API when trying to access a huge site
An API will work far better than trying to automate a thousand user sessions.