projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
skip on older libcurl
[m6w6/ext-http]
/
tests
/
client019.phpt
diff --git
a/tests/client019.phpt
b/tests/client019.phpt
index e60e5aa0a1a4b75c579e880ba695b541ceb6ce68..a69254b38c84863648746b91e3ce57df4560eda1 100644
(file)
--- a/
tests/client019.phpt
+++ b/
tests/client019.phpt
@@
-4,13
+4,16
@@
client proxy - send proxy headers for a proxy request
<?php
include "skipif.inc";
skip_client_test();
<?php
include "skipif.inc";
skip_client_test();
+$client = new http\Client("curl");
+array_key_exists("proxyheader", $client->getAvailableOptions())
+ or die("skip need libcurl with CUTLOPT_PROXYHEADER support\n");
?>
--FILE--
<?php
include "helper/server.inc";
?>
--FILE--
<?php
include "helper/server.inc";
-echo "Test\n";
+echo "Test\n";
var_dump((new http\Client)->getAvailableOptions());
server("proxy.inc", function($port, $stdin, $stdout, $stderr) {
echo "Server on port $port\n";
server("proxy.inc", function($port, $stdin, $stdout, $stderr) {
echo "Server on port $port\n";