I am creating REST services with Yii and testing with RESTclient (Firefox Add-on).
I could create GET ITEM (View) and GET LIST (Index). However, the POST (Create), PUT (Update) and DELETE require login as admin and cause the following error:
Status Code: 302 Found
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection: close
Content-Length: 0
Content-Type: text/html; charset=UTF-8
Date: Wed, 01 Aug 2012 02:10:43 GMT
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Location: <SERVER>/yii/<DIR>/site/login
Pragma: no-cache
Server: Apache/2.2.21 (Fedora)
X-Powered-By: PHP/5.3.13
How can I pass username/password (admin/admin) from RestClient?