|
Posted by yawnmoth on 05/31/07 01:58
On May 30, 8:46 pm, "Edward Z. Yang" <edwardzy...@thewritingpot.com>
wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> ReGenes...@aol.com 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.
Although I can't say, for sure, I suspect the problem may be more
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)")
Navigation:
[Reply to this message]
|