Added missing getContentFromUrl() call that is just a url not a string
updated api to conditionally allow certificat validation