Skip to content
This repository has been archived by the owner on Jan 16, 2018. It is now read-only.

POST not sending "body" #23

Open
pctj101 opened this issue Dec 15, 2011 · 2 comments
Open

POST not sending "body" #23

pctj101 opened this issue Dec 15, 2011 · 2 comments

Comments

@pctj101
Copy link

pctj101 commented Dec 15, 2011

It seems there is no HTTP Body when sending a simple post (iOS 5.0.1)

NSDictionary *params = [NSMutableDictionary dictionary];
[(NSMutableDictionary *)params setObject:@"Joe Bloggs" forKey:@"name"];
[(NSMutableDictionary *)params setObject:@"[email protected]" forKey:@"email"];

[[LRResty client] post:url payload:params
withBlock:^(LRRestyResponse *response){}];

On the server side, no HTTP request body is received.

Tried both with current master and arcified branches.

@lukeredpath
Copy link
Owner

I've not come across this issue before; the functional tests work OK. NSDictionary payloads are sent as form-encoded data; is this what your server is expecting?

@pctj101
Copy link
Author

pctj101 commented Dec 22, 2011

Yes, just normal form-encoded data expected. POSTing to a Rails app that otherwise works fine.

If I see any more, I'll let you know, but I am not actively focusing on this library since I found another one that worked on the first try.

This isn't to put this library down... it might have simply been some coincidence or circumstance that I didn't understand.

Thanks for at least looking.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants