Hello, I recently received authorization from Twitter to use xAuth for authentication on an iphone application. I am using the POST method as described in the docs for xAuth, however, everytime I make my NSMutableURLRequest I get an 'unsupported url' error. The url I'm using the post to looks like this:
https%3A%2F%2Fapi.twitter.com%2Foauth%2Faccess_token I am using the following authorization header: OAuth oauth_nonce="EBE7DF5A-0B88-4455-92F3-FCD6AEA3B297", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1275580859", oauth_consumer_key="myconsumerkey", oauth_signature="mysignature%3D", oauth_version="1.0" The post body looks like this: x_auth_mode=client_auth&x_auth_password=password&x_auth_username=username Are there any ideas as to what could be going wrong? It seems no matter what I do, the NSURLConnection fails immediately with this unsupported url error: NSErrorFailingURLKey = https%3A%2F%2Fapi.twitter.com%2Foauth%2Faccess_token; NSErrorFailingURLStringKey = "https%3A%2F%2Fapi.twitter.com %2Foauth%2Faccess_token"; NSLocalizedDescription = "unsupported URL"; NSUnderlyingError = Error Domain=kCFErrorDomainCFNetwork Code=-1002 UserInfo=0x3f5d230 "unsupported URL"; Thanks! Craig