Hi,
I am currently using httpWebRequest to be able to login in a game.
I first get my cookie, then do a POST data to be logged in. This works and I am logged in.
What I want now, is that the user is able to navigate in the game via CefSharp. So I thought two differents things to do that :
- Give my cookie to CefSharp so my session is still the same and it's not gonna ask me to log again (and so to logout the program)
- Or forward the url to a localhost so the session is still the same for both (and could even access it on normal browser).
Like that :
From "http://mygame.fr/game/index.php?page=overview"
To "http://127.0.0.1:8710/game/index.php?page=overview"
For both cases I didn't find anything that could help me, and don't really have any idea where to search.
Thanks for any help.
What I have tried:
When I am logged in I have that
using (StreamReader sr = new StreamReader(getResponse.GetResponseStream()))
{
string sourceCode = sr.ReadToEnd();
HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
doc.LoadHtml(sourceCode);
if (doc.ParseErrors.Count() == 0)
planetList = new PlanetList(sourceCode);
}