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

curl-and-php

Re: COOKIEFILE COOKIEJAR empty

From: Shanshui Liu <me_at_lx.sg>
Date: Tue, 1 May 2012 12:46:01 +0800

Heh. Anyway, glad to see that it's now resolved.

With regards,
Liu Shan Shui
http://lx.sg/
"Life would be much easier if I had the source code." - Anonymous

On Tue, May 1, 2012 at 10:42 AM, Richard Lynch <ceo_at_l-i-e.com> wrote:

> 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 <ceo_at_l-i-e.com> 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
>

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