Unclassified - Non-Classifié
Hello,
I’ve been using some R code to annually query opendap for several years. It worked fine this time last year but I think my problem might be with sending my authentication.
I know my url is fine as if I paste it:
to the dap4 data request form:
(after logging in), it produces the expected data.
However, sending the same request via R:
httr::GET(url, httr::authenticate(opendap_authenticate$id,opendap_authenticate$pw),httr::write_disk(path = "oscar_currents_final_20220101.nc" , overwrite = TRUE))
is producing a “status 401” result. The ID and PW I send are the same I used to log into the dap4 data request form.
Do you have any suggestions as to why my ID and PW might not be giving me access when I attempt this using a call from R? (again, it worked fine last summer).
Thanks!
Michael