title: OAuth with Google Reader API using Objective C
body: <p>I'm using the <a href="http://code.google.com/p/gdata-objectivec-client/wiki/OAuthSignInControllers" rel="nofollow noreferrer">gdata OAuth controllers</a> to get an OAuth token and then signing my requests as instructed. </p>
  
  <p><code>[auth authorizeRequest:myNSURLMutableRequest]</code></p>
  
  <p>It works great for GET requests but POSTs are failing with 401 errors. I knew I wouldn't be able to remain blissfully ignorant of the OAuth magic.</p>
  
  <p>The Google Reader API requires parameters in the POST body. OAuth requires those parameters to be encoded in the signature like they were on the query string. It doesn't appear the gdata library does this. I tried hacking it in the same way it handles the query string but no luck.</p>
  
  <p>This is so difficult to debug as all I get is a 401 from the Google black box and I'm left to guess. I really want to use OAuth so I don't have to collect login credentials from my users but I'm about to scrap it and go with the simpler cookie based authentication that is more mature. It's possible I'm completely wrong about the reason it's failing. This is my best guess.</p>
  
  <p>Any suggestions for getting gdata to work or maybe an alternative iphone friendly OAuth library? </p>