Finish HTTP error logic, add HTTPS support

Also added scan output savings to CSV