cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Cookies?

From: David Colter <dolan2go_at_yahoo.com>
Date: Thu, 1 May 2008 18:04:33 -0400

Question about curl handling cookies.

Here's an example of cookies returned from 1 of 20 (or so) pages my
script will navigate through:

Set-Cookie: SMSESSION=5Rx1y2xkI2p5GYtJ2hBv0G ..... cut ...... i
+R4eXrmddE; path=/; domain=.xyz.com
Set-Cookie: SMSESSION=5Rx1y2xkI2p5GYtJ2hBv0GWNqQaft ....... cut ......
i+R4eXrmddE; path=/; domain=.xyz.com
Set-Cookie: GroupMemberships=GroupMem%3A%7B51%7D%7B201%7D%7B202%7D
%7B363%7D%7B449%7D%7B598%7D%7B614%7D; path=/jetnet
Set-Cookie: EmploymentStatus=ActiveEmployee; path=/jetnet
Set-Cookie: DepartmentCode=007; path=/jetnet
Set-Cookie: JetNetUser=00300611; path=/jetnet
Set-Cookie: PTLogin=; path=/jetnet
Set-Cookie: portalUser=00300611; domain=.aa.com; path=/
Set-Cookie: RetireeStatus=NotRetired; path=/jetnet
Set-Cookie: portalNRTP=5%2F1%2F2008+4%3A39%3A26+PM; domain=.xyz.com;
path=/
Set-Cookie: Name=DAVID+COLTER; path=/jetnet
Set-Cookie: IntranetFlag=0; path=/jetnet
Set-Cookie: BIGipServerPortal_80_Green=3640937994.20480.0000;
expires=Thu, 01-May-2008 23:40:13 GMT; path=/

These are returned shortly after login is complete, and further
Requests to server will not contain all of them. How does curl know
which to send?

This site's going to be a tough nut to crack. It'd be nice if I could
trust curl to manage these. Any comments?

Thanks,
David Colter

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2008-05-02