Login   Register  
PHP Classes
elePHPant
Icontem

P3P

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP HTTP protocol client  >  All threads  >  P3P  >  (Un) Subscribe thread alerts  
Subject:P3P
Summary:How we connect to a page that uses the P3P protocol
Messages:7
Author:Hamid Mp
Date:2011-01-24 09:34:48
Update:2011-02-01 07:18:42
 

  1. P3P   Reply  
Picture of Hamid Mp
Hamid Mp
2011-01-24 09:34:48
i want to connect Google Account but this page uses the p3p protocol
How do i this job

  2. Re: P3P   Reply  
Picture of Manuel Lemos
Manuel Lemos
2011-01-25 05:19:59 - In reply to message 1 from Hamid Mp
I am not sure what you mean. P3P is mostly about headers sent by some servers to determine information privacy usage. What did you want to do?

  3. Re: P3P   Reply  
Picture of Hamid Mp
Hamid Mp
2011-01-26 05:48:49 - In reply to message 2 from Manuel Lemos
forgive me for poor English text

I want used Google Account for login to Google Groups
But after the entry and redirects to a page to set cookies Walking
This page is not intended Cookies
And it makes me to see google groups page without entering my account

https://www.google.com/accounts/CheckCookie?continue=http%3A ...

i used "Live Http Headers" Add-ons to see this page headers and compare it to my headers

The only difference between them was :

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive

After that cookie has been set, but it not happened on my page

How do I set additional headers
and Whether this is required?

  4. Re: P3P   Reply  
Picture of Hamid Mp
Hamid Mp
2011-01-29 06:21:19 - In reply to message 2 from Manuel Lemos
i found a bug in class
cookie in this site must be set in domain groups.google.com but this set in www.google.com
this cookie set in redirect page
tanks for reply

  5. Re: P3P   Reply  
Picture of Manuel Lemos
Manuel Lemos
2011-01-29 07:09:52 - In reply to message 3 from Hamid Mp
The SendRequest function takes an $arguments array parameter. The Headers array entry may be set to an array of associative values for custom headers you want to send.

  6. Re: P3P   Reply  
Picture of Manuel Lemos
Manuel Lemos
2011-01-29 07:43:39 - In reply to message 4 from Hamid Mp
Can you provide a minimal script that demonstrates the problem?

  7. Re: P3P   Reply  
Picture of Hamid Mp
Hamid Mp
2011-02-01 07:18:42 - In reply to message 6 from Manuel Lemos
$url='https://www.google.com/accounts/ServiceLogin?passive=true&hl=en&service=groups2&continue=http%3A%2F%2Fgroups.google.com%2F&cd=US&ssip=g3';
$this->http->GetRequestArguments($url, $arguments);
$arguments['RequestMethod']='GET';
$arguments['Headers']['Referer']= 'http://groups.google.com/';
if(!$this->GetRequest($arguments, $response))
return(0);
------------------------------------------
$arguments['RequestMethod']='POST';
$arguments['Headers']['Referer']= 'https://www.google.com/accounts/ServiceLogin?passive=true&hl=en&service=groups2&continue=http%3A%2F%2Fgroups.google.com%2F&cd=US&ssip=g3';
$arguments['PostValues']=array(
'continue'=> 'http://groups.google.com/',
'service'=>'groups2',
'cd'=>'US',
'dsh'=>$matches[1],
'hl'=>'en',
'timeStmp'=>'',
'secTok'=>'',
'GALX'=>$matches[2],
'Email'=>$parameters['Email'],
'Passwd'=>$parameters['Passwd'],
'rmShown'=>'1',
'signIn'=>'Sign in',
'asts'=>''
);
if(!$this->GetRequest($arguments, $response))
return(0);
---------------------------------------
After Receive variable , Post Data And login this script must be set 3 cookie for access google group page

cookie url must be "google.com" if they set "www.google.com"
I set them manually by "cookies" array