Exemplo n.º 1
0
        public void ExecuteJob(CookieAwareWebClient cawc, string address)
        {
            string toPost = string.Format("myusername={0}&mypassword={1}&Submit=Login", _user, _pass);

            cawc.Headers["Content-Type"] = "application/x-www-form-urlencoded";
            cawc.UploadStringAsync(new Uri(NetworkAddresses.ObtainLoginAddress(), UriKind.Absolute), toPost);
        }
Exemplo n.º 2
0
        public void ExecuteJob(CookieAwareWebClient cawc, string address)
        {
            string toPost = string.Format("testo={0}&device=WindowsPhone&Submit=Inserisci", _data);

            cawc.Headers["Content-Type"] = "application/x-www-form-urlencoded";
            cawc.UploadStringAsync(new Uri(NetworkAddresses.ObtainBattuteUploadAddress(), UriKind.Absolute), toPost);
        }
Exemplo n.º 3
0
 public void ExecuteJob(CookieAwareWebClient cawc, string address)
 {
     cawc.DownloadStringAsync(new Uri(NetworkAddresses.ObtainBattuteDownloadAddress()));
 }