I have this method.
[self postRequestWithURL: (NSString *) postArgs:(NSDictionary *) headerArgs: (NSDictionary *) ];
How can I correctly call this method?
the url is: http://www.google.com/reader/api/0/edit-tag?
the post args are: "a=user/-/state/com.google/read&ac=edit-tags&s=feed/%@&i=%@&T=%@", entry.link, entry.identifier, tokenString
and header are:
NSString *authHeader = [NSString stringWithFormat:@"GoogleLogin %@", authString];
[thttpReq addValue:authHeader forHTTPHeaderField:@"Authorization"];
[thttpReq addValue:@"Content-Type" forHTTPHeaderField:@"application/x-www-form-urlencoded"];
Can sompne help me to insert postArgs and HeaderArgs in a NSDictionary?
Thanks
Paolo
Try something like this:
Note that the list after
dictionaryWithObjectsAndKeys:contains alternations of objects and keys, separated by commas, followed by a finalnil, as in the example above.FWIW, the dictionaries here are autoreleased, so you don’t have to release them explicitly.