implementing obj-c calls to get and post/put to server