changes on scanfile

support HTTPS