Is there a .net library for parsing relative web addresses?

I am writing a search engine (why not?) And you need to handle relative URLs like "../about.aspx", "/about.aspx", "about.aspx" etc.

Is there anything there or in the .Net library that can convert them to absolute addresses?

+3
source share
2 answers

Look at the System.Uri class System.UriBuilder , and the System.HttpStyleUriParser class

+1
source

Yes you can use system.uri.

0
source

Source: https://habr.com/ru/post/1708467/


All Articles