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?
Thank you in advance.
Amy.
How to create .urs_cookies?
Re: How to create .urs_cookies?
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.
viewtopic.php?t=2329
viewtopic.php?t=2329