curl
curl copied to clipboard
A basic CURL wrapper for PHP
I know this will break backward compatibility but IMO it's very important to force programmers to handle curl errors, instead of passively handling them (via `->error()`). It also removes the...
Hello! Seems there is a problem with HTTP/2 request. The pattern in the preg regex isn't able to detect the new HTTP/2 response. Maybe the pattern needs to be updated...
Can you please release a version so folks aren't required to use `dev-master`?
Used `json_encode($vars)` for all requests that specify `content-type: application/json` in their header params. The lib failed when posting JSON payload so i added a fix to `json_encode($body)` all requests that...
Hi shuber, I have an upload api i use it to upload files to google cloud storage and this is the api `http://acquired-backup-198200.appspot.com/upload?uname=arun&Description=description&players=arun,sai&community=true&Location=US&skills=batting&analysis=true` I use php-curl to upload files to...
When a url return content by redirect once. The response will have two headers. And the CurlReponse just preg_match one header. and the other exists in the $reponse->body. I thought...
if ($response) { $response = new CurlResponse($response); $response->info = curl_getinfo($this->request); } else { $this->error = curl_errno($this->request).' - '.curl_error($this->request); }
I've added debug support for the curl.php library and you may be interested in. You just need to do something like ``` $curl = new Curl; $curl->debug = true; ```...
get_request_options() - drops an associative array of the curl options currently configured