Why doesn’t authorization work on StackOverflow?

public class Http { public static byte[] Post(string uri, NameValueCollection pairs) { byte[] response = null; using (WebClient client = new WebClient()) { response = client.UploadValues(uri, pairs); } return response; } } //........................ var response = Http.Post("https://ru.stackoverflow.com/users/login", new NameValueCollection() { { "fkey", "Тут fkey лежит" }, { "ssrc", "head" }, { "email", "*******@gmail.com" }, { "password", "********" }, }); 
  • Does the server return something? - Monk
  • Yes, just an unauthorized page and everything - alex-rudenkiy
  • And why not through the API? api.stackexchange.com/docs/authentication - VladD
  • @VladD I don’t want to, as it’s not convenient, I’m gonna need some app, then a new and incomprehensible oauth (I know that for the majority on this forum this is nonsense, but not for me) just to get the html of the authorized page. - alex-rudenkiy
  • one
    @ alex-rudenkiy: Through OAuth, this is a supported path, it will work. Through emulation of the request from the browser, it may or may not work, and has the right to fall off at any time. - VladD

0