Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static async Task DownloadPageAsync(string web)
- {
- try
- {
- HttpClient cl = new HttpClient();
- string body = await cl.GetStringAsync(new Uri(web));
- Debug.Log(web);
- }
- catch (HttpRequestException e)
- {
- Debug.Log(e.InnerException.Message);
- }
- catch (Exception ex)
- {
- Debug.Log(ex.ToString());
- }
- }
Add Comment
Please, Sign In to add comment