After few month i return back...I see which nexon change server structure and use SSL for authentication on web site.
This is my old code which i use for get NPP Cookie but now don't work i think for SSL encryption.
When i send data i riceve this response:
[Only registered and activated users can see links. Click Here To Register...]
There is one can help me to try to resolve this first problem?Thanks.
This is my old code which i use for get NPP Cookie but now don't work i think for SSL encryption.
Code:
string cookieval = string.Empty;
string s = "{\"account\":{\"userId\":\"" + HttpUtility.UrlEncode(username) + "\",\"password\":\"" + HttpUtility.UrlEncode(password) + "\",\"accessedGame\":\"Warrock\",\"captcha\":\"\",\"isSaveID\":false}}";
CookieContainer webCookieContainer = new CookieContainer();
HttpWebRequest webRequest = (HttpWebRequest)HttpWebRequest.Create(new Uri("https://passport.nexoneu.com/Service/....."));
webRequest.CookieContainer = webCookieContainer;
webRequest.KeepAlive = true;
webRequest.Method = "POST";
webRequest.ContentType = "application/json;";
webRequest.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36";
webRequest.Timeout = 20000;
webRequest.ContentLength = s.Length;
webRequest.Proxy = null;
using (Stream wr = webRequest.GetRequestStream())
{
byte[] stringa = Encoding.ASCII.GetBytes(s);
wr.Write(stringa, 0, stringa.Length);
wr.Close();
}
HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse();
using (StreamReader read = new StreamReader(webResponse.GetResponseStream()))
{
string content = read.ReadToEnd();
MessageBox.Show(content);
}
[Only registered and activated users can see links. Click Here To Register...]
There is one can help me to try to resolve this first problem?Thanks.