Created
March 11, 2014 03:02
-
-
Save MrBluePotato/9478731 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _username = "Account.UserName"; | |
var _password = "Account.PassWord"; | |
var data = "wrap_name=" + _username + "&wrap_password=" + _password + "&wrap_scope=http://xxx.com/"; | |
var url = "https://www.starbucks.com/account/signin"; | |
var wc = new WebClient | |
{ | |
//BaseAddress = "https://www.starbucks.com/account/signin" | |
}; | |
var URI = new Uri(url); | |
wc.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded"; | |
wc.UploadStringCompleted += new UploadStringCompletedEventHandler(wc__UploadStringCompleted); | |
wc.UploadStringAsync(URI, "POST", data); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment