Lines Matching refs:package
5 function bb2_protocol($settings, $package) argument
9 …xists('Expect', $package['headers_mixed']) && stripos($package['headers_mixed']['Expect'], "100-co…
15 if ($settings['strict'] && !strcmp($package['server_protocol'], "HTTP/1.1")) {
16 …ma', $package['headers_mixed']) && strpos($package['headers_mixed']['Pragma'], "no-cache") !== FAL…
23 function bb2_cookies($settings, $package) argument
28 …strpos($package['headers_mixed']['Cookie'], '$Version=0') !== FALSE && !array_key_exists('Cookie2'…
34 function bb2_misc_headers($settings, $package) argument
36 @$ua = $package['headers_mixed']['User-Agent'];
38 if (!strcmp($package['request_method'], "POST") && empty($ua)) {
45 if ($settings['strict'] && strpos($package['request_uri'], "#") !== FALSE) {
49 if (strpos($package['request_uri'], ";DECLARE%20@") !== FALSE) {
58 …if ($settings['strict'] && array_key_exists('Range', $package['headers_mixed']) && strpos($package…
65 if (array_key_exists('Content-Range', $package['headers_mixed'])) {
73 if (array_key_exists('via', $package['headers']) &&
74 strpos($package['headers']['via'],'Clearswift') === FALSE &&
80 if (array_key_exists('Via', $package['headers_mixed'])) {
81 …($package['headers_mixed']['Via'], "pinappleproxy") !== FALSE || stripos($package['headers_mixed']…
90 if ($settings['strict'] && array_key_exists('Te', $package['headers_mixed'])) {
91 if (!preg_match('/\bTE\b/', $package['headers_mixed']['Connection'])) {
96 if (array_key_exists('Connection', $package['headers_mixed'])) {
98 …if (preg_match('/\bKeep-Alive\b/i', $package['headers_mixed']['Connection']) && preg_match('/\bClo…
102 if (preg_match('/\bclose,\s?close\b/i', $package['headers_mixed']['Connection'])) {
106 if (preg_match('/\bkeep-alive,\s?keep-alive\b/i', $package['headers_mixed']['Connection'])) {
113 …if (array_key_exists('X-Aaaaaaaaaaaa', $package['headers_mixed']) || array_key_exists('X-Aaaaaaaaa…
117 if ($settings['strict'] && array_key_exists('Proxy-Connection', $package['headers_mixed'])) {
121 if (array_key_exists('Referer', $package['headers_mixed'])) {
123 if (empty($package['headers_mixed']['Referer'])) {
130 if (strpos($package['headers_mixed']['Referer'], ":") === FALSE) {