Guest User

Untitled

a guest
Jan 20th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. public static async Task DownloadPageAsync(string web)
  2. {
  3. try
  4. {
  5. HttpClient cl = new HttpClient();
  6. string body = await cl.GetStringAsync(new Uri(web));
  7.  
  8. Debug.Log(web);
  9. }
  10. catch (HttpRequestException e)
  11. {
  12. Debug.Log(e.InnerException.Message);
  13. }
  14. catch (Exception ex)
  15. {
  16. Debug.Log(ex.ToString());
  17. }
  18. }
Add Comment
Please, Sign In to add comment