PHP Classes

accept cookies

Recommend this page to a friend!

      PHP HTTP protocol client  >  All threads  >  accept cookies  >  (Un) Subscribe thread alerts  
Subject:accept cookies
Summary:how to?
Messages:6
Author:axelc
Date:2006-06-20 16:02:58
Update:2006-06-25 18:58:49
 

  1. accept cookies   Reply   Report abuse  
Picture of axelc axelc - 2006-06-20 16:02:59
Hi all,

Do I need do something to enable my client (using this class) accept cookies ?

My sample code "visits" this site
kloth.net/services/wru.php

If I open the previous URL with a real browser (firefox) I see this line:
HTTP_COOKIE KLTwru=1150814936+hello+world...

But If I open with this class, I can get this.

I have add this line:
$http->support_cookies=1;
but seems not usefull because the class do this.

Thanks fo your help,

Alexandre

  2. Re: accept cookies   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2006-06-20 23:23:28 - In reply to message 1 from axelc
I just tried accessing that page here with the class and it collects and sends back that cookie correctly as expected.

Some PHP versions have bugs handling arrays. What PHP version are you using?

  3. Re: accept cookies   Reply   Report abuse  
Picture of axelc axelc - 2006-06-21 01:14:35 - In reply to message 1 from axelc
Olá Manuel,

Grato pela resposta.

Im using PHP 4.4.0 with my opensuse 10.0 and apache 2.0

This PHP version have bugs related with arrays ?

Alexandre

  4. Re: accept cookies   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2006-06-21 13:31:56 - In reply to message 3 from axelc
I am not sure about 4.4.0, but certainly 4.4.1 certain is very buggy. I recommend at least 4.4.2 or 4.3.x .

I also use SuSE 10.0 in my development machine. If you run online update, you will get a fixed version.

SuSE PHP maintainers also provide the latest versions RPM by FTP in the projects directory.

  5. Re: accept cookies   Reply   Report abuse  
Picture of axelc axelc - 2006-06-25 14:01:39 - In reply to message 4 from Manuel Lemos
Thanks for your help.

I ill try update the php of my dev machine.
I have search the usual repos (http://en.opensuse.org/Additional_YaST_Package_Repositories) but do find any update to 4.4.2
Have you any sugestion ?

thanks


  6. Re: accept cookies   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2006-06-25 18:58:49 - In reply to message 5 from axelc
No, if you use online update, PHP 4.4.0 is updated to a version fixed with the patches.