I have this URL: URL from Google
When open link in new tab, the browser force me download it. After download, I get a text file named "s". But I want use C# access to this URL and get it's text, don't save it as a file to computer. Is any way to do this?
Try this:
This will place the contents of the request into strContent.
Or as adrianbanks mentioned below simply use WebClient.DownloadString()
Since this question and my previous answer is fairly old now, a more modern answer would be to use
HttpClient
fromSystem.Net.Http
If not within an async function, then: