objective c - How to specify Restkit object manager to perform a POST -


i trying send post request using ios restkit. can perform get, cannot find how send post.

my current code looks following:

rkurl *url = [rkurl urlwithbaseurl:[objectmanager baseurl] resourcepath:@"/users/sign_in.json" queryparameters:params]; [objectmanager loadobjectsatresourcepath:[nsstring stringwithformat:@"%@?%@", [url resourcepath], [url query]] delegate:self]; 

apparently, performs get. idea should add make post?

thanks!

to answer question (regardless of above discussion) can following:

[objectmanager loadobjectsatresourcepath: @"path" usingblock: ^(rkobjectloader *loader) { loader.httpmethod = rkrequestmethodpost; }]; 

Comments

Popular posts from this blog

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -