Skip to content

Commit

Permalink
Merge e945821 into 5aab2d6
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag committed Nov 19, 2019
2 parents 5aab2d6 + e945821 commit 7b46905
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/http-client-via-proxy.php
Expand Up @@ -15,12 +15,12 @@
Loop::run(static function () use ($argv) {
try {
// If you need authentication, you can set a custom header (using Basic auth here)
// $connector = new Http1Tunnel(new SocketAddress('127.0.0.1', 5512), [
// $connector = new Http1TunnelConnector(new SocketAddress('127.0.0.1', 5512), [
// 'proxy-authorization' => 'Basic ' . \base64_encode('user:pass'),
// ]);

// If you have a proxy accepting HTTPS connections, you need to use Https1Tunnel instead:
// $connector = new Https1Tunnel(new SocketAddress('proxy.example.com', 5512));
// If you have a proxy accepting HTTPS connections, you need to use Https1TunnelConnector instead:
// $connector = new Https1TunnelConnector(new SocketAddress('proxy.example.com', 5512));
$connector = new Http1TunnelConnector(new SocketAddress('127.0.0.1', 5512));

$client = (new HttpClientBuilder)
Expand Down

0 comments on commit 7b46905

Please sign in to comment.