开发者

C# question - how do I convert a PageURI & Href to an absolute URL/URI?

开发者 https://www.devze.com 2022-12-18 00:26 出处:网络
How do I convert a PageU开发者_JS百科RI & Href to an absolute URL/URI in C#? i.e. I am scanning a web page at a given PageURI and in the HTML have link/node with a HREF, and want to translate thi

How do I convert a PageU开发者_JS百科RI & Href to an absolute URL/URI in C#?

i.e. I am scanning a web page at a given PageURI and in the HTML have link/node with a HREF, and want to translate this HREF into a valid absolute URI.

Background - note the trouble I was having here


new URI(uri, string) does it

0

精彩评论

暂无评论...
验证码 换一张
取 消