Rank: Member Groups: Member
Joined: 7/30/2018 Posts: 16
|
Hi,
I have used several other browsers before I ended up using EO Browser. So far so good however I am having a little trouble.
Summary ;
When I restart my server ( nodejs server) I send my clients "restarted" code so that they understand they need to login otherwise some of the functionalities won't work.
so when I get the "restarted" message, I invoke a function in my c# application and send a post request with my username and password.
I successfully login to the system via post request, I got the success message. However browser does not recognise it. I have tried several cookie setup methods however I got no luck .
using (var wb = new WebClient()) { var data = new NameValueCollection(); data["username"] = "username"; data["password"] = "password";
string url = "http://localhost:8080/logMe";
var response = wb.UploadValues(url, "POST", data); string responseInString = Encoding.UTF8.GetString(response); MessageBox.Show(responseInString); }
I actually don't get how can I get cookies via this way or should I follow another method. I would be more than happy if you can guide me
|
Rank: Member Groups: Member
Joined: 7/30/2018 Posts: 16
|
ok I found some solutions, thanks
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,258
|
Great. Glad to hear that you got it working!
|