Is there a .net library for parsing relative web addresses?
-
22-08-2019 - |
Question
I am writing a search engine (why not hey?) and need to handle navigating relative urls such as "../about.aspx", "/about.aspx" "about.aspx" etc
Is there anything out there or in the .Net Library's which can convert these to absolute addresses?
Solution
Take a look at the System.Uri class, the System.UriBuilder class, and the System.HttpStyleUriParser class
OTHER TIPS
Yes, you can use the system.uri
.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow