You are here: Re: PHP accept cookies? « PHP Programming Language « IT news, forums, messages
Re: PHP accept cookies?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация