Pickup file from HTTP file server

How do you pickup a file from an HTTPS file server? I have tried the pub.client:http and I can get authenticated but when I get bytesToString on the response it is basically the html from the page after the login…

I saw something about pub.web:loadDocument and from what I see this does nothing for what I am trying to do unless I am doing something wrong. Im sure people are doing this but how?

Is there another type of HTTP service that will be used for this?

Thanks for any help.

What did you put in url parameter? Exact file location on server or some kind login page?