Page 1 of 1

CDDIS archive file download with C#

Posted: Tue Sep 28, 2021 8:22 am America/New_York
by maxbar
I am trying to download the data files as described in this article:
https://wiki.earthdata.nasa.gov/pages/v ... d=76519934
but I get plain HTML instead of data archive after second redirect to https://urs.earthdata.nasa.gov/oauth/au ... client_id=...
Tried different options, using WebClient instead of HttpWebRequest, parsing hidden html fields, etc., but so far to no avail.
Also tried to load data with Wget, as described here: https://wiki.earthdata.nasa.gov/display ... L+And+Wget and it gives the same result unless I use the '--auth-no-challenge' switch.
Of course a simple C# solution without calling Wget exists, so if anyone has come across it, please tell

Re: CDDIS archive file download with C#

Posted: Thu Sep 30, 2021 1:58 pm America/New_York
by ASDC - ingridgs
Thank you for your question. A Subject Matter Expert has been notified and will answer your question shortly. Please stand by!

Re: CDDIS archive file download with C#

Posted: Thu Sep 30, 2021 2:05 pm America/New_York
by cynthia.hall
I am not able to answer your question directly about the C# code, but I do know CDDIS discontinued some services in October 2020, which may have affected some things. Take a look at the data access options at https://cddis.nasa.gov/Data_and_Derived ... ccess.html and see if this provides some insight. If not, please let us know and we will try to figure things out further.
Thanks!