I've seen this question posted previously on bytes.com, but the question was never fully answered.
Hypothetically, use this as a URL: http://subdomain1.subdomain2.domain.subdomain3.com What I'm looking for is a way to extract just the domain name leaving the subdomains and any other data excluded.
At any given point, I won't know how many subdomains are included in the URL. So using a regex probably isn't the best idea as...
Search Result
Collapse
2 results in 0.0013 seconds.
Keywords
Members
Tags
-
How to extract from a URL
-
System.Net.HttpWebRequest.Create(url) Problem
Hello:
I am trying to send an email which body will be a local aspx page, but when I try to get the page html using System.Net.Http WebRequest.Crea te(url) I am getting this error:
Invalid URI: The format of the URI could not be determined
I read that I need to provide the full URI but I do not know how to do that so that it works when debuging(here I get a path like this http://localhost:43898/MyAppNam...