Changed getURL code to fix SSL certificate issues