REST Login Problem

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?

Follow up from the questioner.

My .htaccess is

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php

and main.php includes:

           'urlManager'=>array(


                    'urlFormat'=>'path',


                    'showScriptName'=>false,


                ...

So,

Location: <SERVER>/yii/<DIR>/site/login

should be mapped to <SERVER>/yii/<DIR>/index.php/site/login, and actionLogin of siteController is expected to be called. If I type in this url (without index.php), the mapping works and I can get a login panel. But when the Yii framework tries to access to the url, it fails to convert the url. How can I fix this?