Advertisement
Butunin

Untitled

Jun 24th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.69 KB | None | 0 0
  1.   public static void MessageSend(string userName)
  2.         {
  3.             string userName = "test_1_2";
  4.             string password = "Q1W2e3r4";
  5.             string userpochata = "losevdl@iek.ru";
  6.        
  7.             HttpWebRequest request =
  8.    WebRequest.Create("https://" + userName + ":" + password + "@wunderlust.iek.local/ews/exchange.asmx/s/GetUserPhoto?email=" + userpochata + "&size=HR120x120")
  9.    as HttpWebRequest;
  10.                      using (HttpWebResponse resp = request.GetResponse() as HttpWebResponse)
  11.             {
  12.                
  13.                 Bitmap image = new Bitmap(resp.GetResponseStream());
  14.                 image.Save("Sadie.jpg");
  15.             }
  16.  
  17.        
  18.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement