title: OAuth access token request failing (NSErrorFailingURLStringKey)
body: <p>I have the following steps completed in the OAuth process:<br>
  1) Request token<br>
  2) Authorize token<br>
  3) Receive PIN number<br></p>
  
  <p>What I can't get to work is getting the access token with the PIN I receive.  It always hits my <code>accessTokenTicket:didFailWithError</code> selector.</p>
  
  <p>Here's the URL that's getting passed to it:<br>
  <a href="http://www.formspring.me/oauth/access_token?oauth_token=TOKEN_KEY_HERE&amp;oauth_verifier=PIN_HERE" rel="nofollow">http://www.formspring.me/oauth/access_token?oauth_token=TOKEN_KEY_HERE&amp;oauth_verifier=PIN_HERE</a></p>
  
  <p>And here's the code that's being called:</p>
  
  <pre><code>- (void)successfulAuthorizationWithPin:(NSString *)pin {
      NSLog(@"successfulAuthorizationWithPin:%@", pin);&lt;br&gt;
      OAMutableURLRequest *request;&lt;br&gt;
      OADataFetcher *fetcher;
  
      NSURL *url = [NSURL URLWithString:kOAuthAccessTokenURL];
  
      request = [[[OAMutableURLRequest alloc] initWithURL:url
                                                 consumer:self.consumer
                                                    token:self.accessToken
                                                    realm:nil
                                        signatureProvider:nil] autorelease];
  
      OARequestParameter *p0 = [[OARequestParameter alloc] initWithName:@"oauth_token" value:self.accessToken.key];
      OARequestParameter *p1 = [[OARequestParameter alloc] initWithName:@"oauth_verifier"
                                                                  value:pin];
  
      NSArray *params = [NSArray arrayWithObjects:p0, p1, nil];
      [request setParameters:params];
      [request prepare];
  
      NSLog(@"%@", request.URL);
  
      fetcher = [[[OADataFetcher alloc] init] autorelease];
  
      [fetcher fetchDataWithRequest:request
                           delegate:self
                  didFinishSelector:@selector(accessTokenTicket:didFinishWithData:)
                    didFailSelector:@selector(accessTokenTicket:didFailWithError:)];
  
      [p0 release];
      [p1 release];
  }
  </code></pre>
  
  <p>And the <code>didFail</code> method (just an <code>NSLog</code> of the error) produces this error:</p>
  
  <p><code>Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" UserInfo=0x6160c20 {NSErrorFailingURLKey=http://www.formspring.me/oauth/access_token?oauth_token=TOKEN_KEY_HERE&amp;oauth_verifier=PIN_HERE, NSErrorFailingURLStringKey=http://www.formspring.me/oauth/access_token?oauth_token=TOKEN_KEY_HERE&amp;oauth_verifier=PIN_HERE, NSUnderlyingError=0x61321f0 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error -1012.)"}</code></p>
  
  <p>Am I formatting the URL wrong or supplying wrong or not enough parameters?</p>
  
  <p>Thanks!<br>
  John</p>