Details |
Letzte Änderung |
Log anzeigen
| RSS feed
| Revision |
Autor |
Zeilennr. |
Zeile |
| 1 |
lars |
1 |
--TEST--
|
|
|
2 |
Add a custom header to the request, and then remove it (without firing it).
|
|
|
3 |
|
|
|
4 |
--FILE--
|
|
|
5 |
<?php
|
|
|
6 |
require_once dirname(__FILE__) . '/../requestcore.class.php';
|
|
|
7 |
$http = new RequestCore('http://github.com/skyzyx/requestcore/raw/master/_tests/test_request.txt');
|
|
|
8 |
$http->prep_request();
|
|
|
9 |
|
|
|
10 |
$http->add_header('x-requestcore-header', 'value');
|
|
|
11 |
$http->remove_header('x-requestcore-header');
|
|
|
12 |
|
|
|
13 |
var_dump($http->request_headers);
|
|
|
14 |
|
|
|
15 |
/*#block:["require_once"]*/
|
|
|
16 |
?>
|
|
|
17 |
|
|
|
18 |
--EXPECT--
|
|
|
19 |
array(2) {
|
|
|
20 |
["Expect"]=>
|
|
|
21 |
string(12) "100-continue"
|
|
|
22 |
["Connection"]=>
|
|
|
23 |
string(5) "close"
|
|
|
24 |
}
|