How to allow authenticated users to access actions in curl

i am currently using curl in my yii app.

In my application i can access public actions using curl url.

but i want to access authenticated actions.How to get logged in user’s session OR parameter so that i can use access authenticated actions? I don’t know how to allow logged in user to access authenticated actions? Is there any demo for curl in yii. I dont use yii-curl extension.