Re: COOKIEFILE COOKIEJAR empty
"Richard Lynch" <[email protected]> Mon, 30 Apr 2012 21:42:38 -0500
| Newsgroups | gmane.comp.web.curl.php |
|---|---|
| Message-ID | <[email protected]> |
Nothing so complex... I'm embarrassed to report that I somehow managed to delete the COOKIEJAR line... Not one of my better days. On Mon, April 30, 2012 11:15 am, Shanshui Liu wrote: > Maybe the cookies are not set by HTTP headers at all (e.g. via > JavaScript). > Have you looked through the headers to see whether "Set-Cookie:" does > exist? Also, modified versions of PHP (e.g. Suhosin) might prevent > scripts > from writing to files not owned by the same user as the web server / > PHP > CGI process, so you may want to try running a chown (change owner) on > the > cookie file? (I'm not familiar with server adminstration stuff > though.) > > With regards, > Liu Shan Shui > http://lx.sg/ > "Life would be much easier if I had the source code." - Anonymous > > > On Mon, Apr 30, 2012 at 10:12 PM, Richard Lynch <[email protected]> wrote: > >> I'm having trouble with CURLOPT_COOKIEFILE and CURLOPT_COOKIEJAR in >> PHP. >> >> I have tried ./cookies.txt and /full/path/to/cookies.txt >> >> I have them at 777 in sheer desperation. >> >> Are there any checks in libcurl for keeping me from shooting myself >> in >> the foot with owner/group/permission? >> >> I am using RETURNTRANSFER and FOLLOWLOCATION. >> >> I seem to remember having issues with CURLOPT_HEADER in conjunction >> with COOKIE* way back when. It felt like since I was getting the >> headers, libcurl didn't feel the need to track cookies for me... >> >> Are there any known incompatibilities among those three? >> >> I need to make a second request in another HTTP transaction, so I'm >> pretty sure I need those cookies, and I'd rather not parse the >> headers >> for them... Especially as there might be one set by an interstitial >> page, so I'd have to also follow the 30* redirects by hand as well. >> >> -- >> brain cancer update: >> http://richardlynch.blogspot.com/search/label/brain%20tumor >> Donate: >> >> https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FS9NLTNEEKWBE >> >> >> _______________________________________________ >> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php >> > _______________________________________________ > http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php > -- brain cancer update: http://richardlynch.blogspot.com/search/label/brain%20tumor Donate: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FS9NLTNEEKWBE _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php