CDDIS archive file download with C#
Posted: Tue Sep 28, 2021 8:22 am America/New_York
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
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