I want to login wordpress using C#.
I tried to login wordpress using HttpWebRequest, but failed.
The others say that I can't login wordpress using HttpWebRequest, because of cookie-session problem.
But they say that it is possible if I use Socket.
But I can't know how to use login website using Socket.
So I need your help.
The program will be connected not directly from C#, but rather program called NinjaTrader which is written in C# so there should be no issues
Please bid with your way how are you going to solve this problem.
no classes/functions/procedures/3rd party stuff
string url="http://WORDPRESS.COM_SITE/[url removed, login to view]";
string username = "username";
string password = "password";
string privateurl = "http://WORDPRESS.COM_SITE/wp-admin/";
string log_file = [url removed, login to view]("yyyy_M_d_HH_mm_ss") + "[url removed, login to view]";
The program should do the following -> login to wordpress -> request the private url which is only accessible with membership login -> dump the content of the webpage to the log_dir and file log_file
For writing to write -> this can be used
[url removed, login to view] sw;
sw = new [url removed, login to view](log_file,false);
[url removed, login to view](CONTENT);
[url removed, login to view]();
Yes, its possible using simple HttpWebRequest, I dont understand why someone ask you to use socket. Strange !! Actually it will be much more difficult to login using socket as its a https url.
10 freelancers are bidding on average $52 for this job
We can handle the project for you within 10 minutes. We will provide the source code in a C# class which is capable of logging into the Wordpress site of your choice.