You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[HTTP requests through an SSH proxy server](https://github.com/clue/reactphp-buzz#ssh-proxy).
323
-
When using the `SshSocksConnector` (recommended), this works for both plain HTTP
324
-
and TLS-encrypted HTTPS requests. When using the `SshProcessConnector`, this only
325
-
works for plaintext HTTP requests.
318
+
This library also allows you to send HTTP requests through an SSH proxy server.
319
+
320
+
In order to send HTTP requests, you first have to add a dependency for [ReactPHP's async HTTP client](https://github.com/reactphp/http#client-usage). You can then use this HTTP client in combination with the [`SshSocksConnector`](#sshsocksconnector) provided by this package. This allows you to send both plain HTTP and TLS-encrypted HTTPS requests like this:
321
+
322
+
```php
323
+
$proxy = new Clue\React\SshProxy\SshSocksConnector('me@localhost:22', $loop);
324
+
325
+
$connector = new React\Socket\Connector($loop, array(
326
+
'tcp' => $proxy,
327
+
'dns' => false
328
+
));
329
+
330
+
$browser = new React\Http\Browser($loop, $connector);
0 commit comments