Skip to content

Instantly share code, notes, and snippets.

@MrBluePotato
Created March 11, 2014 03:02
Show Gist options
  • Save MrBluePotato/9478731 to your computer and use it in GitHub Desktop.
Save MrBluePotato/9478731 to your computer and use it in GitHub Desktop.
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