gowalla/AFNetworking — Issue #94: GET and POST
Author: joecarney
Created: 2011-10-27 21:54:44+00:00
State: open

GET is working in this code...

AFHTTPClient *httpClient = [[AFHTTPClient alloc] initWithBaseURL:[NSURL URLWithString:SERVER]];
NSMutableURLRequest *request;
request = [httpClient requestWithMethod:@"GET"
path:PATH
parameters:parameters];

POST is not...

AFHTTPClient *httpClient = [[AFHTTPClient alloc] initWithBaseURL:[NSURL URLWithString:SERVER]];
NSMutableURLRequest *request;
request = [httpClient requestWithMethod:@"POST"
path:PATH
parameters:parameters];

Not sure if it is me, but when I try and POST, the parameters are not working. I switch to GET and it forms the QueryString OK and sends, with exactly the same parameters...