skip to Main Content

curl authentication works with `–netrc` but not `–user` – Nginx

With curl 7.74.0, the command $ curl -b ~/.cookies -c ~/.cookies -L --user 'USERNAME:PASSWORD' https://daac.ornl.gov/daacdata/daymet/Daymet_V4_Stn_Level_CrossVal/data/stnxvalmeta_tmin_pr_2016.txt yields HTTP 401 (verbose output listed below). However, the following works: $ echo 'machine urs.earthdata.nasa.gov login USERNAME password PASSWORD' >>~/.netrc $ curl -b ~/.cookies -c…

VIEW QUESTION
Back To Top
Search