As part of a scripted imagery acquisition program, I am pulling SeaWiFS data < 5 years old and therefore need user authorization.
The script uses a call to wget and fails the authorization. Here is an example on command line of what happens:
$ echo S2007136181200.L2_MLAC_OC | wget -B
http://oceancolor.gsfc.nasa.gov/restrict/browse.pl --user=$usr --password=$pwd --content-disposition -i -
--2012-05-22 10:53:35--
http://oceancolor.gsfc.nasa.gov/restrict/S2007136181200.L2_MLAC_OCResolving oceancolor.gsfc.nasa.gov... 169.154.128.44
Connecting to oceancolor.gsfc.nasa.gov|169.154.128.44|:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Connecting to oceancolor.gsfc.nasa.gov|169.154.128.44|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-05-22 10:53:35 ERROR 404: Not Found.
What am I missing here?
Dirk