Wget timestamp option no longer works since authentication upgrade
Posted: Mon Jan 27, 2020 9:35 am America/New_York
Sean,Using the --timestamp option with wget now causes downloads to fail.$ wget -v --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --keep-session-cookies --auth-no-challenge=on --content-disposition https://oceandata.sci.gsfc.nasa.gov (/cgi/getfile/V2019335133000.L2_SNPP_OC.nc--2020-01-27 10:26:23-- ) https://oceandata.sci.gsfc.nasa.gov (/cgi/getfile/V2019335133000.L2_SNPP_OC.nc)Resolving oceandata.sci.gsfc.nasa.gov (oceandata.sci.gsfc.nasa.gov)... xx.xxx.xx.xx, 2001:4d0
128::84Connecting to oceandata.sci.gsfc.nasa.gov (oceandata.sci.gsfc.nasa.gov)|xx.xxx.xx.xx|:443... connected.HTTP request sent, awaiting response... 302 FoundLocation: /ob/getfile/V2019335133000.L2_SNPP_OC.nc [following]--2020-01-27 10:26:23-- https://oceandata.sci.gsfc.nasa.gov(/ob/getfile/V2019335133000.L2_SNPP_OC.nc)Reusing existing connection to oceandata.sci.gsfc.nasa.gov:443.HTTP request sent, awaiting response... 302 FoundLocation: https://urs.earthdata.nasa.gov/oauth/authorize?client_id=Z0u-MdLNypXBjiDREZ3roA&redirect_uri=https%3A%2F%2Foceandata.sci.gsfc.nasa.gov(%2Fob%2Fgetfile%2Frestrict&response_type=code&required_scope=study_area,country [following]--2020-01-27 10:26:24--) https://urs.earthdata.nasa.gov/oauth/authorize?client_id=Z0u-MdLNypXBjiDREZ3roA&redirect_uri=https%3A%2F%2Foceandata.sci.gsfc.nasa.gov (%2Fob%2Fgetfile%2Frestrict&response_type=code&required_scope=study_area,country) Resolving urs.earthdata.nasa.gov (urs.earthdata.nasa.gov)... xx.xxx.xx.xx, 2001:4d0
4081::89Connecting to urs.earthdata.nasa.gov (urs.earthdata.nasa.gov)|xx.xxx.xx.xx|:443... connected.HTTP request sent, awaiting response... 302 FoundLocation: https://oceandata.sci.gsfc.nasa.gov (/ob/getfile/restrict?code=cc128f531cf035e33370a4fa6e247e35ee83c24d02ebd91fb44c8e9c9d62368e )[following]--2020-01-27 10:26:24-- https://oceandata.sci.gsfc.nasa.gov (/ob/getfile/restrict?)code=cc128f531cf035e33370a4fa6e247e35ee83c24d02ebd91fb44c8e9c9d62368eConnecting to oceandata.sci.gsfc.nasa.gov (oceandata.sci.gsfc.nasa.gov)|xx.xxx.xx.xx|:443... connected.HTTP request sent, awaiting response... 302 FoundLocation: /ob/getfile/V2019335133000.L2_SNPP_OC.nc [following]--2020-01-27 10:26:24-- https://oceandata.sci.gsfc.nasa.gov (/ob/getfile/V2019335133000.L2_SNPP_OC.nc) Reusing existing connection to oceandata.sci.gsfc.nasa.gov:443.HTTP request sent, awaiting response... 200 OKLength: 77120538 (74M) [application/octet-stream]Saving to: ‘V2019335133000.L2_SNPP_OC.nc’100%[==========================================================================================>] 77,120,538 22.1MB/s in 3.4s2020-01-27 10:26:34 (21.4 MB/s) - ‘V2019335133000.L2_SNPP_OC.nc’ saved [77120538/77120538]$ wget -v --timestamp --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --keep-session-cookies --auth-no-challenge=on --content-disposition https://oceandata.sci.gsfc.nasa.gov(/cgi/getfile/V2019335133000.L2_SNPP_OC.nc--2020-01-27 10:26:40-- ) https://oceandata.sci.gsfc.nasa.gov (/cgi/getfile/V2019335133000.L2_SNPP_OC.nc) Resolving oceandata.sci.gsfc.nasa.gov (oceandata.sci.gsfc.nasa.gov)... xx.xxx.xx.xx, 2001:4d0
128::84Connecting to oceandata.sci.gsfc.nasa.gov (oceandata.sci.gsfc.nasa.gov)|xx.xxx.xx.xx|:443... connected.HTTP request sent, awaiting response... 302 FoundLocation: /ob/getfile/V2019335133000.L2_SNPP_OC.nc [following]--2020-01-27 10:26:41-- https://oceandata.sci.gsfc.nasa.gov (/ob/getfile/V2019335133000.L2_SNPP_OC.nc) Connecting to oceandata.sci.gsfc.nasa.gov (oceandata.sci.gsfc.nasa.gov)|xx.xxx.xx.xx|:443... connected.HTTP request sent, awaiting response... 302 FoundLocation: https://urs.earthdata.nasa.gov/oauth/authorize?redirect_uri=https%3A%2F%2Foceandata.sci.gsfc.nasa.gov (%2Fob%2Fgetfile%2Frestrict&response_type=code&client_id=Z0u-MdLNypXBjiDREZ3roA&required_scope=study_area,country) [following]--2020-01-27 10:26:44-- https://urs.earthdata.nasa.gov/oauth/authorize?redirect_uri=https%3A%2F%2Foceandata.sci.gsfc.nasa.gov%2Fob%2Fgetfile%2Frestrict&response_type=code&client_id=Z0u-MdLNypXBjiDREZ3roA&required_scope=study_area,countryResolving urs.earthdata.nasa.gov (urs.earthdata.nasa.gov)... xx.xxx.xx.xx, 2001:4d0
4081::89Connecting to urs.earthdata.nasa.gov (urs.earthdata.nasa.gov)|xx.xxx.xx.xx|:443... connected.HTTP request sent, awaiting response... 400 Bad Request2020-01-27 10:26:45 ERROR 400: Bad Request.