How to parse information on website section for registered users only using php
===

I'v tried to change my headers using header() function both like curl_setopt() but my headers did not change. Is there any addition actions need to change my headers? If the section of website which I want to parse is only for registered users, they can keep cookies with auth-data. Do I need additional header information got from auth-cookie? 