Dns.GetHostEntry not working with 'http://'

时间:2015-05-04 19:50:04

标签: c# asp.net url dns

If I try to resolve a website's IP with a url that includes http:// (at the beginning of the url) or / (at the end of the url), it won't work. How can I parse any url given by the user to a url that works with Dns.GetHostEntry method?

0 个答案:

没有答案