curl-client icon indicating copy to clipboard operation
curl-client copied to clipboard

cURL client

Results 14 curl-client issues
Sort by recently updated
recently updated
newest added

This client assumes the existence of a HTTP factory. It either needs to be injected in the constructor or php-http autodiscovery is used to find one.

During sendRequest the Client checks for the existence of a curl handle in the `handle` property. If there is one, it calls `curl_reset` on it and continues with that handle....

enhancement

There is no limitation in cURL that would prevent these methods to have a body. And without the body for these requests you are unable to use APIs that require...

``` PHP message: PHP Fatal error: Uncaught TypeError: Return value of Http\Client\Curl\PromiseCore::getException() must implement interface Throwable, instance of Nyholm\Psr7\Response returned in /var/www/releases/20191015093018/vendor/php-http/curl-client/src/PromiseCore.php:194 Stack trace: #0 /var/www/releases/20191015093018/vendor/php-http/curl-client/src/CurlPromise.php(103): Http\Client\Curl\PromiseCore->getException() #1 /var/www/releases/20191015093018/vendor/sentry/sentry/src/Transport/HttpTransport.php(110): Http\Client\Curl\CurlPromise->wait()...

- the return value of rejection callback should reinject to fulfill the promise and recover from the error - this is not supported - chaining promises/callbacks is wrong, see https://blog.domenic.me/youre-missing-the-point-of-promises/...

http://docs.php-http.org/en/latest/clients/curl-client.html I just followed steps on the page. And there are 2 packages now in my `composer.json`: ```json "require": { "php-http/curl-client": "^2.0", "php-http/message": "^1.7" } ``` http://docs.php-http.org/en/latest/clients/curl-client.html#usage I've copied one...

given the following snippet ``` #!/usr/bin/env php

in progress

Super dummy script that confirms this behaviour: curl.php ```php

I'm not sure where this gets swallowed, but I'm trying following: ``` php use Http\Client\Curl\Client; use Http\Client\HttpClient; use Http\Message\MessageFactory\DiactorosMessageFactory; use Http\Message\StreamFactory\DiactorosStreamFactory; use Zend\Diactoros\Request; $client = new Client(new DiactorosMessageFactory(), new DiactorosStreamFactory());...

feedback
pending