The problem occurs e.g. on http://ip-api.com/json
The site automatically redirects from http to https.
But the way how the OP posted it seems to work.
Trouble in http request from Autoreg Rambler
-
Hello everyone, there is a Rambler autoregger on BAS. IMAP verification is organized on requests. In 40% of cases, the stream is terminated with the error "Error enabling IMAP (Error)", after the correct introduction of the captcha. I decided to make it so that after receiving a response that IMAP is not enabled, the captcha for IMAP is solved again, now it is just solved forever. Help me fix it

