objective c - URL-encode a nested NSDictionary in AFNetworking -
i'm trying perform http request passing along normal nsdictionary contains mix of primitive types array of nested nsdictionarys. i'm passing in dictionary getpath method of afnetworking, , fails error code this:
afnetworkingoperationfailingurlrequesterrorkey=http://eatup.herokuapp.com/create/event?description=asfasf&host=100002448015520&locations%5b%5d%5bfriendly_name%5d=qdoba%20mexican%20grill&locations%5b%5d%5blat%5d=40.4413066&locations%5b%5d%5blink%5d=http%3a%2f%2fwww.yelp.com%2fbiz%2fqdoba-mexican-grill-pittsburgh&locations%5b%5d%5blng%5d=-79.95717399999999&locations%5b%5d%5bnum_votes%5d=0×tamp=1365471302803.915&title=as>, nserrorfailingurlkey=http://eatup.herokuapp.com/create/event?description=asfasf&host=100002448015520&locations[][friendly_name]=qdoba%20mexican%20grill&locations[][lat]=40.4413066&locations[][link]=http%3a%2f%2fwww.yelp.com%2fbiz%2fqdoba-mexican-grill-pittsburgh&locations[][lng]=-79.95717399999999&locations[][num_votes]=0×tamp=1365471302803.915&title=as, nslocalizeddescription=expected status code in (200-299), got 500
in code, "locations" key of array containing nsdictionarys. removing entire locations field in url-encoding makes work. how do locations field?
thanks!
Comments
Post a Comment