scottchiefbaker
13 years agoVisitor
Fetch XML via HTTPS
I want to use HTTPS to fetch my XML files, but simply putting https in the URL isn't enough. After reading the documentation I think maybe I need to use SetCertificatesFile() to give it some key? The key of the CA? Do I need to bundle the cert with my app, or can I pass it a URL to get the cert?
url = "https://www.perturb.org/hls/test.xml"
http = NewHttp(url)
http.SetCertificatesFile(???)
rsp = http.GetToStringWithRetry()