I'm trying to create a custom single sign on application in PHP and am
having trouble with gzinflate. After converting the request from
base64 encoding and trying to gzinflate the results I recive the
following error:
Warning: gzinflate() [function.gzinflate]: data error in ...htdocs/
gmail/signontest.php on line 35
Warning: gzuncompress() [function.gzuncompress]: data error in
...htdocs/sso/signontest.php on line 38
I have also tried writing the result of $decmsg = base64_decode($msg)
to a file and 'zcat' ing the file and 'gunzip' it.
#cat file |gunzip gunzip:
stdin: not in gzip format
#zcat file
zcat: file: not in gzip format
Here is the function that I am having the trouble with:
function samlDecodeMessage($msg)
{
$decmsg = base64_decode($msg);
$infmsg = gzinflate($msg, strlen($msg));
if ($infmsg === FALSE) {
// gzinflate failed, try gzuncompress
$infmsg = gzuncompress($decmsg);
};
return $infmsg;
}
I am using PHP 5.1.2 and apache 2.x. Any help with this problem would
be greatly appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---