I am going to develop web services based on REST API. It is my first project of web services.
I have a question regarding web services-iPhone app.
Suppose when a user logged in using iPhone app his will get authentication token.
Using this token he/she wiil be authorized to use futher operation of app . I am planing about that iPhone app needs to be send hearders along with post/get request method with authentication key in herders.
Request looks like: www.mydomaoin.com
But to authorize on server I need to pass special parameters to Header of request:
Headers: X-Testing-Auth-Secret: kI7wGju76kjhJHGklk76
Headers: Content-Type : application/json
which will be used in controller (zend framework)
public function preDispatch()
{
$request = new Zend_Controller_Request_Http();
$key = $request->getHeader('X-Testing-Auth-Secret');
$type = $request->getHeader('Content-Type');
}
I don't know an iPhone capable for sending headers or not. As as in case of android.
I am a php developer
Please help me