| @@ 102-115 (lines=14) @@ | ||
| 99 | $this->_runtests(); |
|
| 100 | } |
|
| 101 | ||
| 102 | function testHttp11Gzip() |
|
| 103 | { |
|
| 104 | if(!function_exists('curl_init')) |
|
| 105 | { |
|
| 106 | $this->markTestSkipped('CURL missing: cannot test http 1.1'); |
|
| 107 | return; |
|
| 108 | } |
|
| 109 | $this->method = 'http11'; // not an error the double assignment! |
|
| 110 | $this->client->method = 'http11'; |
|
| 111 | $this->client->keepalive = false; |
|
| 112 | $this->client->accepted_compression = array('gzip'); |
|
| 113 | $this->client->request_compression = 'gzip'; |
|
| 114 | $this->_runtests(); |
|
| 115 | } |
|
| 116 | ||
| 117 | function testHttp11Deflate() |
|
| 118 | { |
|
| @@ 117-130 (lines=14) @@ | ||
| 114 | $this->_runtests(); |
|
| 115 | } |
|
| 116 | ||
| 117 | function testHttp11Deflate() |
|
| 118 | { |
|
| 119 | if(!function_exists('curl_init')) |
|
| 120 | { |
|
| 121 | $this->markTestSkipped('CURL missing: cannot test http 1.1'); |
|
| 122 | return; |
|
| 123 | } |
|
| 124 | $this->method = 'http11'; // not an error the double assignment! |
|
| 125 | $this->client->method = 'http11'; |
|
| 126 | $this->client->keepalive = false; |
|
| 127 | $this->client->accepted_compression = array('deflate'); |
|
| 128 | $this->client->request_compression = 'deflate'; |
|
| 129 | $this->_runtests(); |
|
| 130 | } |
|
| 131 | ||
| 132 | function testHttp11Proxy() |
|
| 133 | { |
|