Which credential does open() use when it accesses a file via
open("https://www.google.de")
there are no credentials passed with open.
in order to pass credentials you want to use New HTTPRequest (and maybe New OAuth2) depending on the web service.