Re: PHP accept cookies?
- From: yawnmoth <terra1024@xxxxxxxxx>
- Date: 30 May 2007 18:58:16 -0700
On May 30, 8:46 pm, "Edward Z. Yang" <edwardzy...@xxxxxxxxxxxxxxxxx>
wrote:
-----BEGIN PGP SIGNED MESSAGE-----Although I can't say, for sure, I suspect the problem may be more
Hash: SHA1
ReGenes...@xxxxxxx wrote:
Problem- I need to log into the site from a PHP script- and when I
send my login info, it responds with the following:
If you are using cURL, use curl_setopt()http://us2.php.net/manual/en/function.curl-setopt.phpwith
CURLOPT_COOKIEJAR and CURLOPT_COOKIEFILE to ensure cookies sent back get
carried over.
You can also use a PHP browser emulator like SimpleTest to get similar
functionality.
complicated then that.
What if the cookies aren't being set with HTTP headers but rather,
with javascript? cURL won't catch them, then, and unless SimpleTest
has a full blown javascript parser, I doubt it will, either.
So what if the Flash file, itself, is setting the cookies?
Well, I guess you could always decode the Flash file and create your
own "cookiejar" from that...
The Flash specifications are available here:
http://www.adobe.com/licensing/
(scroll down to "Macromedia Flash (SWF) and Flash Video (FLV) File
Format Specification (Version 8)")
.
- Follow-Ups:
- Re: PHP accept cookies?
- From: Edward Z. Yang
- Re: PHP accept cookies?
- References:
- PHP accept cookies?
- From: ReGenesis0
- Re: PHP accept cookies?
- From: Edward Z. Yang
- PHP accept cookies?
- Prev by Date: nonblocking STDIN in CLI PHP app
- Next by Date: Re: nonblocking STDIN in CLI PHP app
- Previous by thread: Re: PHP accept cookies?
- Next by thread: Re: PHP accept cookies?
- Index(es):
Relevant Pages
|