changes on scanfile

support httpS