Я использую в своем приложении для iphone этот код, но не вижу сообщения в своем твиттере.Я не получаю сообщение об ошибке.
NSMutableURLRequest * request = [NSMutableURLRequest requestWithURL: [NSURL URLWithString: @ "http://username:password@twitter.com/statuses/update.xml"] cachePolicy: NSURLRequestUseProtocolCachePolicy timeoutInterval: 15.0] N_tring to textmsg = @ "testing";
// Set the HTTP request method
[request setHTTPMethod:@"POST"];
[request setHTTPBody:[[NSString stringWithFormat:@"status=%@", msg]
dataUsingEncoding:NSASCIIStringEncoding]];
NSURLResponse *response;
NSError *error;
if ([NSURLConnection sendSynchronousRequest:request
returningResponse:&response error:&error] != nil)
NSLog(@"Your Poem posted to Twitter successfully.");
else
NSLog(@"Could not post to Twitter");
Может кто-нибудь сказать мне, что не так?