안녕하세요.
질문 제목과 같이..
HttpUrlConnection 에 Auth Challenge 는 어떻게 넣어주는지 궁금합니다..
ios에서는 아래와같이 하면 되는데, 안드로이드는 어떻게 해야할지 모르겠네요 ;ㅁ;
- (void)connection:(NSURLConnection *)connection willSendRequestForAuthenticationChallenge:(NSURLAuthenticationChallenge*)challenge
{
NSLog(@"%@",challenge);
NSURLCredential *credential = [[NSURLCredential alloc] initWithUser:self.textfield01_id.textpassword:self.textfield02_password.text persistence:NSURLCredentialPersistenceNone];
[[challenge sender] useCredential:credential forAuthenticationChallenge:challenge];
}
도움 부탁드립니다.