Issue
In Python, I can run
import requests
url = "https://www.cij.gov.ar/d/sentencia-SGU-afb60c47-0de3-4e3f-869f-ff0d4abcb1a8.pdf"
requests.get(url, verify = False)
in order to bypass the missing certificate exception.
However, running Downloads.download("https://www.cij.gov.ar/d/sentencia-SGU-afb60c47-0de3-4e3f-869f-ff0d4abcb1a8.pdf")
raises ERROR: Cert verify failed: BADCERT_NOT_TRUSTED while requesting
.
Is there a way to disable the check in Julia as well?
(If the answer involves toggling some environmental variables, I'm looking to doing this within the VSCODE Julia extension, which doesn't always look at the same variables as the regular REPL...)
Solution
You can use HTTP.jl (I use an url which has broken certificate - your example seems to have a valid one):
val = HTTP.get("https://self-signed.badssl.com/", require_ssl_verification=false)
now val.body
contains all bytes you need and you can save the to file.
Answered By - Przemyslaw Szufel Answer Checked By - Senaida (WPSolving Volunteer)