php cURL POST call
with cookie parsing