Subversion-Projekte lars-tiefland.php_share

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

--TEST--
Add a custom header to the request, and then remove it (without firing it).

--FILE--
<?php
        require_once dirname(__FILE__) . '/../requestcore.class.php';
        $http = new RequestCore('http://github.com/skyzyx/requestcore/raw/master/_tests/test_request.txt');
        $http->prep_request();

        $http->add_header('x-requestcore-header', 'value');
        $http->remove_header('x-requestcore-header');

        var_dump($http->request_headers);

        /*#block:["require_once"]*/
?>

--EXPECT--
array(2) {
  ["Expect"]=>
  string(12) "100-continue"
  ["Connection"]=>
  string(5) "close"
}