Welcome Guest Search | Active Topics | Sign In | Register

Login via post request, cookie setup Options
deli333
Posted: Sunday, August 5, 2018 11:37:21 AM
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
deli333
Posted: Monday, August 6, 2018 11:53:04 AM
Rank: Member
Groups: Member

Joined: 7/30/2018
Posts: 16
ok I found some solutions, thanks
eo_support
Posted: Monday, August 6, 2018 4:00:57 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,258
Great. Glad to hear that you got it working!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.