RestKit/RestKit — Issue #429: RestKit incorrectly signs OAuth 1.0a HTTP POSTs
Author: Pretz
Created: 2011-11-03 04:44:56+00:00
State: open

When signing a request with GCOAuth, [RestKit always calls the following](https://github.com/RestKit/RestKit/blob/master/Code/Network/RKRequest.m#L248):
```objective-c
NSURLRequest *echo = [GCOAuth URLRequestForPath:[_URL path]
GETParameters:[_URL queryDictionary]
scheme:[_URL scheme]
host:[_URL host]
consumerKey:self.OAuth1ConsumerKey
consumerSecret:self.OAuth1ConsumerSecret
accessToken:self.OAuth1AccessToken
tokenSecret:self.OAuth1AccessTokenSecret];
```
This is called even when the request is an HTTP POST request. Instead, the GCOAuth method
```objective-c
+ (NSURLRequest *)URLRequestForPath:(NSString *)path
POSTParameters:(NSDictionary *)parameters
host:(NSString *)host
consumerKey:(NSString *)consumerKey
consumerSecret:(NSString *)consumerSecret
accessToken:(NSString *)accessToken
tokenSecret:(NSString *)tokenSecret {
```

should be used. With the current implementation, POSTs will be signed incorrectly with GET prepended to the URL instead of POST. I began trying to implement this, but I'm not familiar enough with how `RKParams` works to reconstruct the parameter dictionary.