I want to create a page in ASP.NET which will, send request to another non ASP.NET URL, and check something there, in my case it is to check, is the domain name free, or it is already in use. (Method = POST) As a result i want to get an HTML code, from which i will extract a result, using RegEx. The last part, I can do myself :)))
Share
You could use a WebClient to send a POST request and fetch the contents of a remote resource:
I hope you are aware about the general opinion on parsing HTML with Regex. So even if you can do this yourself, don’t do it. Use a HTML parser such as HTML Agility Pack to process the results.