php - How to get session id and do login web form with session id curl? -


how session id , login web form session id curl?

set curlopt_returntransfer, store return value of curl_exec() in variable, use string functions and/or regular expressions extract session id page.

if session id in header (e.g. set-cookie), use curl_setopt() set curlopt_header headers included in output.

if want use session id later submit form, set curlopt_post true , curlopt_postfields associative array containing post data.

useful php documentation links:


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

sql server - python to mssql encoding problem -

windows - Python Service Installation - "Could not find PythonClass entry" -