|
@@ 586-595 (lines=10) @@
|
| 583 |
|
$msg .= "User-Agent: ".$this->_agent."\r\n"; |
| 584 |
|
$msg .= "Cache-Control: no-cache\r\n"; |
| 585 |
|
|
| 586 |
|
if ($_web_access_compress_reply) { |
| 587 |
|
// ask compression of response if gzdecode() and/or gzinflate() is available |
| 588 |
|
if (function_exists('gzdecode') && function_exists('gzinflate')) { |
| 589 |
|
$msg .= "Accept-Encoding: deflate, gzip\r\n"; |
| 590 |
|
} elseif (function_exists('gzdecode')) { |
| 591 |
|
$msg .= "Accept-Encoding: gzip\r\n"; |
| 592 |
|
} elseif (function_exists('gzinflate')) { |
| 593 |
|
$msg .= "Accept-Encoding: deflate\r\n"; |
| 594 |
|
} |
| 595 |
|
} |
| 596 |
|
|
| 597 |
|
// echo "\nData:\n\n".$query['QueryDatas']."\n"; // for debug purposes, don't remove! |
| 598 |
|
|
|
@@ 652-661 (lines=10) @@
|
| 649 |
|
$msg .= "Host: ".$this->_host."\r\n"; |
| 650 |
|
$msg .= "User-Agent: ".$this->_agent."\r\n"; |
| 651 |
|
$msg .= "Cache-Control: no-cache\r\n"; |
| 652 |
|
if ($_web_access_compress_reply) { |
| 653 |
|
// ask compression of response if gzdecode() and/or gzinflate() is available |
| 654 |
|
if (function_exists('gzdecode') && function_exists('gzinflate')) { |
| 655 |
|
$msg .= "Accept-Encoding: deflate, gzip\r\n"; |
| 656 |
|
} elseif (function_exists('gzdecode')) { |
| 657 |
|
$msg .= "Accept-Encoding: gzip\r\n"; |
| 658 |
|
} elseif (function_exists('gzinflate')) { |
| 659 |
|
$msg .= "Accept-Encoding: deflate\r\n"; |
| 660 |
|
} |
| 661 |
|
} |
| 662 |
|
$msg .= "Content-type: ".$query['MimeType']."; charset=UTF-8\r\n"; |
| 663 |
|
$msg .= "Content-length: ".strlen($query['QueryDatas'])."\r\n"; |
| 664 |
|
$query['HDatas'] = $msg; |