You can use a tool like burp suite (I have a cracked version posted) to inspect each request you make individually and see where the cookies are coming from
There's probably a previous request that you are missing that grants you the cookies needed to complete the next request