Closed crotwell closed 6 years ago
Yup, should be easy enough to add a URL decoding step, ala: http://www.rosettacode.org/wiki/URL_decoding#C
Edit: more alternatives at: https://stackoverflow.com/questions/2673207/c-c-url-decode-library
Thanks for the easy test case, that makes it so much easier!
Some libraries, like python-requests percent encode certain characters. In particular some chars that are helpful to use in the regex for the match parameter to /streams like '^' are encoded as '%5E'. The result is that this URL returns data:
http://rtserve.iris.washington.edu/streams?match=^COBIRD but even here, clicking the link in the github markdown seems to apply the percent encoding to the carrot, so even this one doesn't work.
but this one, that should be equivalent, does not: http://rtserve.iris.washington.edu/streams?match=%5ECOBIRD
For reference, Wikipedia on percentEncoding.