Thanks for moving it to the correct section Mio.
I can't get it to work with my current htmlhandler.
The location header:
Code:
Location: http://nl1.grepolis.com/game/login?session_id=d64ma2eqtts0
Is causing an auto redirect and my code can't get that response.
I'm using the class "System.Net.WebRequest" for my requests. Does anybody know if I can turn of the auto redirection?
After some research I found that the class HttpWebRequest has the option to turn auto redirection of. If it isn't possible to turn it of with "System.Net.WebRequest" I could always rewrite my code and use HttpWebRequest.
-edit-
Looks like I can just cast it to an HttpWebRequest
Code:
HttpWebRequest l_Req = (HttpWebRequest)WebRequest.Create(p_URI);
l_Req.AllowAutoRedirect = false;
Going to try again now to see if it works, will let you know when I'm stuck again.
//edit :
I'm almost done with the login process, stuck at the last step now.
Successfully called "http://nl1.grepolis.com/game/login?session_id=4r5anyvv32m8" and retrieved some cookies.
The final step of the login process is to visit "http://nl1.grepolis.com/game/index" but I get only a empty page as response with a Location header that contains:
"http://nl.grepolis.com/start?nosession"
I can simulate a location header with "http://nl.grepolis.com/start?nosession" in a normal browser by logging in with cookies turned off.
Does someone want to give it a try to write some code to login on this game?
I have no idea what goes wrong, any help/tips are welcome!
Greetings Uthar