projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
add test file to package.xml
[m6w6/ext-http]
/
tests
/
HttpRequest_007.phpt
diff --git
a/tests/HttpRequest_007.phpt
b/tests/HttpRequest_007.phpt
index 1f31404af3f6cdccbfbfab3da77d5d76423a3758..067e36c477d702c95645e76e959b43130f8b8d78 100644
(file)
--- a/
tests/HttpRequest_007.phpt
+++ b/
tests/HttpRequest_007.phpt
@@
-9,7
+9,7
@@
checkcls('HttpRequest');
<?php
echo "-TEST\n";
<?php
echo "-TEST\n";
-$r = new HttpRequest('http://dev.iworks.at/.print_put.php5', HTTP_METH_PUT);
+$r = new HttpRequest('http://dev.iworks.at/
ext-http/
.print_put.php5', HTTP_METH_PUT);
$r->recordHistory = true;
$r->addHeaders(array('content-type' => 'text/plain'));
$r->setPutFile(__FILE__);
$r->recordHistory = true;
$r->addHeaders(array('content-type' => 'text/plain'));
$r->setPutFile(__FILE__);
@@
-18,19
+18,19
@@
var_dump($r->getHistory()->toString(true));
echo "Done\n";
?>
--EXPECTF--
echo "Done\n";
?>
--EXPECTF--
-%
s
TEST
-string(%d) "PUT /.print_put.php5 HTTP/1.1
-User-Agent: PECL::HTTP/%
s
+%
a
TEST
+string(%d) "PUT /
ext-http/
.print_put.php5 HTTP/1.1
+User-Agent: PECL::HTTP/%
a
Host: dev.iworks.at
Accept: */*
Content-Type: text/plain
Host: dev.iworks.at
Accept: */*
Content-Type: text/plain
-Content-Length:
281
+Content-Length:
%d
Expect: 100-continue
<?php
echo "-TEST\n";
Expect: 100-continue
<?php
echo "-TEST\n";
-$r = new HttpRequest('http://dev.iworks.at/.print_put.php5', HTTP_METH_PUT);
+$r = new HttpRequest('http://dev.iworks.at/
ext-http/
.print_put.php5', HTTP_METH_PUT);
$r->recordHistory = true;
$r->addHeaders(array('content-type' => 'text/plain'));
$r->setPutFile(__FILE__);
$r->recordHistory = true;
$r->addHeaders(array('content-type' => 'text/plain'));
$r->setPutFile(__FILE__);
@@
-41,18
+41,17
@@
echo "Done\n";
HTTP/1.1 100 Continue
HTTP/1.1 200 OK
HTTP/1.1 100 Continue
HTTP/1.1 200 OK
-Date: %
s
-Server: %
s
-X-Powered-By: %
s
+Date: %
a
+Server: %
a
+X-Powered-By: %
a
Vary: Accept-Encoding
Vary: Accept-Encoding
+Content-Length: %d
Content-Type: text/html
Content-Type: text/html
-X-Original-Transfer-Encoding: chunked
-Content-Length: 281
<?php
echo "-TEST\n";
<?php
echo "-TEST\n";
-$r = new HttpRequest('http://dev.iworks.at/.print_put.php5', HTTP_METH_PUT);
+$r = new HttpRequest('http://dev.iworks.at/
ext-http/
.print_put.php5', HTTP_METH_PUT);
$r->recordHistory = true;
$r->addHeaders(array('content-type' => 'text/plain'));
$r->setPutFile(__FILE__);
$r->recordHistory = true;
$r->addHeaders(array('content-type' => 'text/plain'));
$r->setPutFile(__FILE__);