[WinPhone]How do I login to this website using POST?

I would like to login to this website.

So, basically there are three problems.

  • I haven't used POST much, so I only know the basics of sending POST requests in C#. Certainly not enough to get all these parameters. Are all of these from login form required?
  • How do I preserve cookies when I'll actually log in? Will the Windows.Web.Http.HttpClient automatically save these to some property, or do I have to use something else?
  • I have no idea how to reproduce the image code

I've tried this code to check if I'm doing POST correctly:

private async void ContentDialog_PrimaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args) { Dictionary<string, string> data = new Dictionary<string, string>(); data.Add("email", email.Text); data.Add("password", password.Password); var content = new HttpFormUrlEncodedContent(data); var response = await http.PostAsync(new Uri("http://ift.tt/1fzhRJL;), content); var response_txt = await response.Content.ReadAsStringAsync(); } 

Turns out this works. Now, how do I bypass the security code? And what about cookies?


by MrReynevan2 via /r/csharp

Leave a Reply