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 a HTTP CONNECT proxy server](https://github.com/clue/reactphp-buzz#http-proxy).
211
-
This works for both plain HTTP and TLS-encrypted HTTPS requests.
206
+
This library also allows you to send HTTP requests through an HTTP CONNECT proxy server.
207
+
208
+
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). This allows you to send both plain HTTP and TLS-encrypted HTTPS requests like this:
209
+
210
+
```php
211
+
$proxy = new Clue\React\HttpProxy\ProxyConnector(
212
+
'http://127.0.0.1:8080',
213
+
new React\Socket\Connector($loop)
214
+
);
215
+
216
+
$connector = new React\Socket\Connector($loop, array(
217
+
'tcp' => $proxy,
218
+
'dns' => false
219
+
));
220
+
221
+
$browser = new React\Http\Browser($loop, $connector);
0 commit comments