I am trying to automate a few things in wordpress blog, using HttpWebRequest.
I have tried to get the login page "http://mywebsite.net/wp-admin"
and then try to post with login data on page
"http://www.mywebsite.net/wp-login.php"data = "log=admin&pwd=mypassword&wp-submit=Log+In&redirect_to=http%3A%2F%2Fmywebsite.net%2Fwp-admin%2F&testcookie=1"
i am not able to login, wat i have discovered is that when using browser the cookies are sent to the server, but using HttpWebrequest the cookies are not sent on post, i am configured a cookiecontainer for the httpwebrequest and works fine other wise,..
and also on "post" the request host also changes to "www.mywebsite.net" and on "get" request it is "mywebsite.net"
Please can any one guide me through a solution.