In this tutorial, will show how to log into a website through code. I am going to use Twitter in my example.

THIS IS FOR EDUCATIONAL PURPOSES ONLY. I WOULD NOT ADVISE THE USE OF THIS TO ALWAYS LOG-IN TO TWITTER.

First, you will need to download and install Tamper Data. It’s an add-on for Firefox that allows you to view and tamper with GET/POST web request data. We won’t be doing any tampering. We will be using it to view what POST parameters the page is expecting.

Next, navigate to the log in page for Twitter(http://twitter.com/login). Once the page has loaded, go to Tools –> Tamper Data to open Tamper Data. At the top of Tamper Data, click the Start Tamper button. After clicking the button, click the “Sign In” button on Twitter’s log in page. Once you hit the Sign In button, Tamper Data will prompt you with this popup….

Click “Tamper”. You will then be presented with this window…

If you notice on the right-hand side of the window, you will see the POST parameters. These are:

Now that we have those, we can close the Tamper Data window, and close Firefox.

Now for the code. The code is actually fairly simple. We are just going to use the WebBrowser class to make the requests to the server to get the html source of the page. This will give us the “authenticity_token” for us to use in the POST request.

Basically what i want do is from wpf or c# loging to wordpress, if login is succesfully show some message, and if login not succesfully show other message inside my software.
the adress in wordpress is http://www.webpage/wp-login.php
I not have idea how do this and i not are expert in c#
Best regards!

Basically what i want do is from wpf or c# loging to wordpress, if login is succesfully show some message, and if login not succesfully show other message inside my software.
the adress in wordpress is http://www.webpage/wp-login.php
I not have idea how do this and i not are expert in c#
Best regards!

Although this guy's post is fairly old, in his example you just examine wordpresses theme. Like I did.
The only difference is the post parameters differ, and you don't need some info.