我在iphone中使用ASIFormDataRequest登录后端。但请求不是重定向。我的状态代码为200。
代码:
ASIFormDataRequest *newRequest=[ASIFormDataRequest requestWithURL:newUrl];
[newRequest setRequestMethod:@"POST"];
[newRequest setPostValue:inUserName forKey:@"username"];
[newRequest setPostValue:inPassword forKey:@"password"];
[newRequest setUseKeychainPersistence:YES];
[newRequest setDelegate:self];
[newRequest startAsynchronous];
请帮助解答。