I have a base URL and some relative URIs in this document in which I want to have an absolute path.
eg. base = https://example.com/some/path.html?query=string and relative URIs in this document:
In Java, you have a URL class :
URL abs = new URL(new URL(basePath), relPath);
But, oddly enough, I can't find a simple C library or function that implements just that.
Is there a library supporting this feature? Or even better is some small stand-alone file that you can use?
source
share