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 provides you with the usage of [HTTP requests through an SSH proxy server](https://github.com/reactphp/http#ssh-proxy).
319
+
320
+
To send out HTTP requests you have to add a dependency for [ReactPHP's async HTTP client](https://github.com/reactphp/http). You can then use this HTTP client in combination with the `SshSocksConnector`. This works for both plain HTTP and TLS-encrypted HTTPS requests.
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