Can PHP CURL work over a multiple page session?

yllus

Elite Member & Lifer
Aug 20, 2000
20,577
432
126
Hey guys,

I'm trying to do something pretty simple. First, use PHP CURL to do a form POST and log in as a member on a website. Next, another form POST again using that authenticated session.

It's supposedly possible, but I haven't seen any documentation as to how. Can anyone point me to some examples on how to do this?
 

yllus

Elite Member & Lifer
Aug 20, 2000
20,577
432
126
Thanks Crusty, that got me on the right path! Here's the solution for anyone who was wondering.
 

yllus

Elite Member & Lifer
Aug 20, 2000
20,577
432
126
And apparently the code block of FuseTalk deems carriage returns as unnecessary. :p
 

troytime

Golden Member
Jan 3, 2006
1,996
1
0
i didn't know the answer when you posted this

but if i had known you were doing the atforums mobi i would have spent the day finding the answer