Are you sure you're not using any browser actions in the script?
It would be great if you attached a test script to your answer.
automatically redirects http to https
-
What URL are you talking about exactly?
-
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.