FIFA-Ultimate-Team-Toolkit: Login failure

Hello. I have a problem when I try to login. I realized that there is another request which should be sent to EA. After

var loginResponseMessage = await HttpClient.PostAsync(mainPageResponseMessage.RequestMessage.RequestUri,
                new FormUrlEncodedContent(
                    new[]
                    {
                        new KeyValuePair<string, string>("email", loginDetails.Username),
                        new KeyValuePair<string, string>("password", loginDetails.Password),
                        new KeyValuePair<string, string>("_rememberMe", "on"),
                        new KeyValuePair<string, string>("rememberMe", "on"),
                        new KeyValuePair<string, string>("_eventId", "submit"),
                        new KeyValuePair<string, string>("isPhoneNumberLogin", "false"),
                        //new KeyValuePair<string, string>("facebookAuth", "")
                    }));

I should send GET request to “/p/web2/login?execution=e565516359s2&_eventId=end”. In this way the Toolkit continues to work in right way. Do you have such a problem? Sorry for my English. Thanks.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 32 (4 by maintainers)

Most upvoted comments

@A-VORONKIN Pass the proxy to the HttpClientWrapper

public HttpClientWrapper(IWebProxy proxy)
        {
            if (proxy == null)
            {
                MessageHandler = new HttpClientHandler
                {
                    AutomaticDecompression = DecompressionMethods.GZip
                };
            }
            else
            {
                MessageHandler = new HttpClientHandler
                {
                    AutomaticDecompression = DecompressionMethods.GZip,
                    Proxy = proxy
                };
            }
            _httpClient = new HttpClient(MessageHandler);
            SetExpectContinueHeaderToFalse();
        }

Create your proxy like this

WebProxy = new WebProxy($"{ip}:{port}", false)
            {
                UseDefaultCredentials = false,
            };

Or with credentials

NetworkCredential proxyCreds = new NetworkCredential(username,password);
WebProxy = new WebProxy($"{ip}:{port}", false)
            {
                UseDefaultCredentials = false,
                Credentials = proxyCreds
            };

@Bltfast Can see anything wrong with your code. Maybe the problem is the different machine key, but I don’t know.