cURL Mailing List Monthly Index Single Mail
curl, php, and cookies
From: Murias O'Ceallagh <lists_at_dragonsblood.net>
Date: Thu, 22 Dec 2011 13:27:24 -0800
I'm currently working on a Drupal site that is to have vBulletin content piped / streamed through it. This is all to be done with cURL, and have had moderate success so for with this. I'm having some serious issues though with the cookies the vBulletin cookies.
I am relying upon a Drupal module to handle login to vBulletin, it provides a one login solution. It builds and then sets the vBulletin cookie. I then am using curl to bring the vBulletin content through the Drupal front end.
To be clear though, I am writing my test / proof of concept scripts outside the realm of Drupal initially, to ensure any issues I might incur would be my code and not the Drupal API. ;^)
When I run my script after successful login, the resulting page is one for a guest visitor, not logged in.
I looked at the cookies.txt file that gets written to the server by curl... here is it's contents:
.developyour.net TRUE / FALSE 1356124217 bb_lastvisit 1324588217
Well, these are not all of the cookies that get set for vBulletin to use to verify user credentials.
All the "bb_" are set by the login module I am using. They have the proper domain prefix of "." . They are needed by vBulletin for vBulletin to know I am actually logged into the system, and treat me as such.
Here is my code:
$crl = curl_init();
How can I get those other cookies into the cookie txt file? Have I missed something in my learning and understanding of curl?
Thank you much in the time to read this.
These mail archives are generated by hypermail.
Page updated November 12, 2010.
web site info