I had working code before the most recent ISIS update, using edrget to download CTX files from the PDS Imaging node at JPL.
Now I'm only getting a weird "location has moved" file back, while python's urllib.request.urlretrieve downloads the file correctly, using the exact same input.
Here's the URL I'm providing to edrget:
Here's what I receive with edrget:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
The document has moved here.
Apache/2.2.29 (CentOS) Server at pds-imaging.jpl.nasa.gov Port 80
Here's my ISIS version:
2017-01-25 # Version date
v006 # 3rd party libraries version
stable # release stage (alpha, beta, stable)
My system is a macOS 10.12.4
#1 Updated by Klaus-Michael Aye about 1 year ago
Something became weird with the html code I was pasting. Trying to quote it away this time:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>302 Found</title> </head><body> <h1>Found</h1> <p>The document has moved <a href="https://pds-imaging.jpl.nasa.gov//data/mro/mars_reconnaissance_orbiter/ctx/mrox_1280/data/G06_020531_2022_XN_22N289W.IMG">here</a>.</p> <hr> <address>Apache/2.2.29 (CentOS) Server at pds-imaging.jpl.nasa.gov Port 80</address> </body></html>
#3 Updated by Stuart Sides about 1 year ago
- Status changed from Acknowledged to Resolved
- Assignee set to Stuart Sides
- Target version set to N/A
- Software Version set to 3.5.1 (Sprint 1)
It looks like JPL has switched over to using https instead of http. Try adding the "s" to your URL. If that works please close this ticket, if not let us know what happens.