Skip to content
Ibrahim Mohammed edited this page Mar 13, 2019 · 3 revisions

Welcome to the NASAaccess wiki! Here are some instructions that might help in installing curl on Windows machines:

  1. Define %HOME% variable in your Environment Variables by picking any directory you want to be referenced as your HOME directory.
  2. Create _ntrc file in your home directory. Run these commands in your command prompt. 2.1. cd %HOME% 2.2. echo. > _netrc 2.3. echo "machine urs.earthdata.nasa.gov login <uid> password <password>" >> _netrc (where is your user name and is your Earthdata Login password without the brackets) 2.4. echo. > .urs_cookies
  3. Open your _netrc file by any text editor and remove the quotations before machine and after your password. The _netrc file should be without any quotation marks to get the curl working.
  4. Download the 'curl' with the right built for your machine from https://curl.haxx.se/.
  5. Unpack the zip file in a location at your discretion.
  6. Add the curl.exe file location to your Environment Variables. Once you unpack the zip file you will find the curl.exe file in bin folder.
  7. Close the Environment Variables and check if you can run curl from your command prompt. Type curl --help and you should see the help pages for the curl program once everything is defined correctly.
Clone this wiki locally