Hello Pal,
There exists a few way to "verify" the authentication, most of them with a simple cookie when it begins, we need to get that cookie in a "jar" and paste it in every request, we can make a test with curl if you like,
Write me if you have any doubts or questions, i will be glad to answer you,
Regards,
Rafael Aguilar