![]() In my case, the cookies.txt file is place one directory above the "zzzz" folder.Ĩ) My cookies file has contents that look something like this (if yours doesn't look like this, then perhaps something went wrong): ![]() , where YOURUSERNAME is your username.Ħ) Enter your earthdata password when prompted.ħ) This should have created a cookies.txt file. Wget -qO-keep-session-cookies -save-cookies cookies.txt -post-data -user=YOURUSERNAME -ask-password I am a newbie user of wget with Windows, and after several trials and errors, this the the procedure that worked for me using wget on Windows.ġ) Create a folder "zzzz", where "zzzz" is the folder name in a directory of your choice.Ģ) Copy cmd.exe, or some other equivalent of the a DOS console, into the "zzzz" folder.Ĥ) Double-click cmd.exe to open the DOS console window.ĥ) Run the wget command at the DOS console: Wget info.png (115.3 KiB) Not viewed yet authentication error.png (157.75 KiB) Not viewed yet imerg.png (41.78 KiB) Not viewed yet A picture of the wget info, as well as the authentication error and the parameters of the GPM IMERG files I am trying to download are attached. Any help would be appreciated.įor reference, I'm using GNU wget 1.21.3 for Windows 11. I think the root of the error could be in the creation of the. After that however, it gives me the following error: I'm able to download IMERG_ATBD_V06.pdf and with no problems at all. Wget -load-cookies C:\Users\username\Desktop\folder\.urs_cookies -save-cookies C:\Users\username\Desktop\folder\.urs_cookies -auth-no-challenge=on -keep-session-cookies -user= -ask-password -content-disposition -i url.txt urs_cookies file exists in the folder where I want to download the GPM IMERG files, I run the following code to download the GPM IMERG files through a. In fact, running the dir command in cmd (as per the instructions in this troubleshooting guide: ) for this folder's directory shows me that the file does exist (as a 0 byte URS_COOKIES file) and is stored in this folder. urs_cookies file is still created and stored in the desktop folder. 'NUL' is not recognized as an internal or external command, Following the steps in the above link, I use this code:Ĭ:\Users\username\Desktop\folder>NUL >. To start, launching cmd and making a cookies file results in a weird error. I've followed the 'wget for Windows' section in step-by-step and yet I continue to receive this error. I'm getting a 'Username/Password Authentication Failed' and 'Unknown authentication scheme' error when trying to download GPM IMERG files through the OPeNDAP subsetting service using wget in Windows 11.
0 Comments
Leave a Reply. |