Sign in to follow this  
Followers 0
hangover228

Troubles with Post-request (Xnet)

1 post in this topic

Im tried to auth on wHPIvxw.png but server responed me error 400 (Wrong Post-request). Im spend a lot of time to anylize that could be my problem but that tries didn't succsesive. Code is below:

Spoiler
 Uri url = new Uri("https://id.g2a.com/signin?client_id=g2a&redirect_uri=https://www.g2a.com/oauth2/token&response_type=code&auth_call=1&auth_json=1"); //post-data server (Sniffed by mozilla)
        using (var req = new HttpRequest())
        {
            req.AllowAutoRedirect = True;
            req.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1";
            var param = new RequestParams
            {
                new KeyValuePair<string, string>("username", "TestLogin"), // login 
                new KeyValuePair<string, string>("password", "TestPassword"), // password
                new KeyValuePair<string, string>("security", "123123123"), // Captcha
                new KeyValuePair<string, string>("salt", "doLenFWI2v2oKEUnSNCf76oBj0kq4TgZDB8F%2F7bX7R4%3D"),
                // its changeable. Every requsts needs to have new defenition
                new KeyValuePair<string, string>("protection", "doLenFWI2v2oKEUnSNCf76oBj0kq4TgZDB8F/7bX7R4=")
                // its changeable. Every requsts needs to have new defenition
            };
            // place for keeping response
            Generator.KeeperAnsw = req.Post(url, param).ToString();
        }

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0