Hello, I have this problem. I am sending an authorization request:

request.Post("http://installcube.com/acp/ru/startup/login/", "login=маил&password=пароль").ToString(); 

Then I check if the authorization has passed:

  if (request.Response.Location == "https://installcube.com/acp/ru/dashboard") 

But in response from the server I get:

 <head><title>301 Moved Permanently</title></head> 

How do i fix this? Or check the authorization differently? PS There are no cookies on the site, only the session ID. Thank you in advance :)

  • Well, if you are told Moved Permanently, maybe you should knock on another address? (And yes, why do you need ToString ?) - VladD
  • There is nowhere else to knock, but an error due to Location as I understood it. I use string input = and here is the Post request. - user199587
  • And, you send Post? Well, so you redirect comes, all right. It seems that somewhere it was possible to put a flag FollowRedirects , so that it FollowRedirects for what you need for you. - VladD
  • (And yes, what kind of request do you have?) - VladD
  • Perhaps you need it: AllowAutoRedirect . - VladD

0