Welcome to the Earthdata Forum! Here, the scientific user community and subject matter experts from NASA Distributed Active Archive Centers (DAACs), and other contributors, discuss research needs, data, and data applications.
by yang16 » Thu Jul 14, 2022 11:46 pm America/New_York
Dear Earthdata Forum,
I tried to install wget on my windows10 system to download https in a text file. But when I ran "NUL > .urs_cookies" in cmd window, there was no such a file. Then I created this file in C:, but I wonder what contents should I write in this file?
by njester » Mon Jul 18, 2022 10:57 am America/New_York
Generally, your username/password go into a .netrc file (at least for cygwin, linux, and mac) and the .urs_cookie is empty, but if you construct your wget call correctly it'll log in and update the cookie for you. That being said, recently, it seems like Earthdata is moving from username/password login to token login. If it's not working, I assume that it's looking for a token. Here's a link to a page that shows how to add a login token to your wget request.