解析しようとしているxmlを含むページにアクセスしようとしています。クレデンシャルを必要としない限り機能する次のコードを使用しています。このコードにクレデンシャルを追加するにはどうすればよいですか?
NSURL *url = [[NSURL alloc] initWithString:URLPath];
NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithContentsOfURL:url];
[xmlParser setDelegate: self];
success = [xmlParser parse];
「URLPath」の上にURL文字列があります。次のURLパス形式を使用してみましたが、機能しません。 http://username:password@mypage.com/path/to/file.aspx?Function=Update
ありがとう!