I'm trying to send data to a website using Curl, the script I am making will login to the website and update me if I have any new messages. In order to login to the website you need to be able to input hidden data that prevents XSRF style attacks. The only way to obtain this data is to view the sites data before posting to it. What I was wondering is if it's possible to view with a GET style request, and then take that same session and use the data obtained from that GET to make a POST request. Any examples would be very appreciated.