Convert Out-of-Date URLs into Up-to-Date URLs
The metadata for oceanographic and atmospheric sciences datasets often includes URLs that are out-of-date.
This service is an effort to solve the problem.
The input can be any text (possibly including HTML or XML tags), up to 1000 characters long.
The output will be the same as the input, but with updated URLs.
Notes:
- Always check the results from the converters.
- This currently updates some common URLs associated oceanographic and atmospheric sciences datasets.
It is an incomplete work-in-progress and always will be, because the task
is impossible large and ever changing.
This isn't a general purpose URL updating system,
although it could be improved to cover other realms.
- If you think that the converter did something incorrectly
or didn't update a URL that it should have,
please email the details to erd dot data at noaa dot gov .
- ERDDAP administrators: you can change the conversion rules by editing
<updateUrls> in messages.xml. If you do,
please email the details to erd dot data at noaa dot gov
so the changes can be incorporated into the standard ERDDAP distribution.
- DISCLAIMER OF LIABILITY - No person or organization associated with this website
makes any warranty, express or implied, including warranties of merchantability
and fitness for a particular purpose, or assumes any legal liability for the accuracy,
completeness, or usefulness, of any information at this website.
If you change the extension of this web page's URL from .html to .txt,
and add the query
text=some%20percent-encoded%20text,
ERDDAP will respond with just the text result, but modified to have updated URLs.
An example is
http://erddap.exploratorium.edu:8080/erddap/convert/urls.txt?text=For%20more%20information,%20see%20ftp%3A%2F%2Feclipse.ncdc.noaa.gov/pub/OI-daily/daily-sst.pdf
Percent Encoding - The parameter values in the URL (the part after 'text=') must be properly
percent encoded:
all characters other than A-Za-z0-9_-!.~'()* must be encoded as %HH,
where HH is the 2 digit hexadecimal value of the character, for example, a space becomes
%20. Characters above #127 must be converted to UTF-8 bytes, then each UTF-8 byte must
be percent encoded (ask a programmer for help). There are
websites that percent encode and decode for you.