Home
last modified time | relevance | path

Searched full:curl (Results 1 – 25 of 327) sorted by relevance

12345678910>>...14

/plugin/authfacebook/lib/HttpClients/
DFacebookCurl.php29 …* Abstraction for the procedural curl elements so that curl can be mocked and the implementation c…
37 * @var resource Curl resource instance
39 protected $curl; variable in Facebook\\HttpClients\\FacebookCurl
42 * Make a new curl reference instance
46 $this->curl = curl_init();
50 * Set a curl option
57 curl_setopt($this->curl, $key, $value);
61 * Set an array of options to a curl resource
67 curl_setopt_array($this->curl, $options);
71 * Send a curl request
[all …]
DHttpClientsFactory.php42 …* @throws Exception If the cURL extension or the Guzzle client aren't available (if…
43 …* @throws InvalidArgumentException If the http client handler isn't "curl", "stream", "guzzle", or…
60 if ('curl' === $handler) {
61 if (!extension_loaded('curl')) {
62 … throw new Exception('The cURL extension must be loaded in order to use the "curl" handler.');
79 …throw new InvalidArgumentException('The http client handler must be set to "curl", "stream", "guzz…
89 if (extension_loaded('curl')) {
DFacebookCurlHttpClient.php42 * @var int The curl client error code
52 * @var FacebookCurl Procedural curl as object
57 * @param FacebookCurl|null Procedural curl as object
85 * Opens a new curl connection.
117 * Closes an existing curl connection
125 * Send the request and get the raw response from curl
133 * Compiles the request headers into a curl-friendly format.
/plugin/quickstats/GEOIP/vendor/maxmind/web-service-common/src/WebService/Http/
DCurlRequest.php34 $curl = $this->createCurl();
36 curl_setopt($curl, CURLOPT_POST, true);
37 curl_setopt($curl, CURLOPT_POSTFIELDS, $body);
39 return $this->execute($curl);
44 $curl = $this->createCurl();
46 curl_setopt($curl, CURLOPT_HTTPGET, true);
48 return $this->execute($curl);
56 $curl = curl_init($this->url);
71 // cURL versions
86 curl_setopt_array($curl, $opts);
[all …]
/plugin/gtime/gtlib/http/
DGTHttpClient.php57 $curl = curl_init();
59 curl_setopt($curl, CURLOPT_URL, $stamperUrl);
60 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
61 curl_setopt($curl, CURLOPT_BINARYTRANSFER, 1);
62 curl_setopt($curl, CURLOPT_POST, 1);
63 curl_setopt($curl, CURLOPT_POSTFIELDS, $bytes);
65 $bytes = curl_exec($curl);
68 throw new GTException("Error creating timestamp, CURL error: " . curl_error($curl));
96 $curl = curl_init();
98 curl_setopt($curl, CURLOPT_URL, $verifierUrl);
[all …]
/plugin/html2pdf/html2pdf/html2ps/
Dfetcher.url.curl.class.php6 * This class handles fetching HTTP code using CURL extension
39 $curl = curl_init();
43 curl_setopt($curl, CURLOPT_URL, $fixed_url);
44 curl_setopt($curl, CURLOPT_USERAGENT, DEFAULT_USER_AGENT);
46 if (!@curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1)) {
50 curl_setopt($curl, CURLOPT_HEADER, 1);
51 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
55 curl_setopt($curl, CURLOPT_PROXY, $proxy);
60 * and close CURL session
62 $response = curl_exec($curl);
[all …]
/plugin/validator/
Dhelper.php13 'desc' => 'returns the curl handle for turnstile verification',
18 'return' => ['curl' => 'CurlHandle'],
22 'desc' => 'returns the curl handle for captcha verification',
27 'return' => ['curl' => 'CurlHandle'],
35 $curl = curl_init();
37 curl_setopt_array($curl, [
47 return $curl;
52 $curl = curl_init();
54 curl_setopt_array($curl, [
64 return $curl;
/plugin/jiralinks/
Daction.php95 $curl = curl_init($this->getConf('jira_api_url') . $request);
97 // Additional curl setup
104 curl_setopt($curl, CURLOPT_POST, TRUE);
107 curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($data));
111 // Basic curl setup
112 curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
113 curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);
114 curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC) ;
115 …curl_setopt($curl, CURLOPT_USERPWD, $this->getConf('jira_api_username') . ':' . $this->getConf('ji…
116 curl_setopt($curl, CURLOPT_TIMEOUT, 10);
[all …]
/plugin/youtracklinks/
Dhelper.php20 throw new Exception("You have to install curl first.");
24 $curl = curl_init();
25 curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 1);
26 curl_setopt($curl, CURLOPT_TIMEOUT, 1);
27 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
32 curl_setopt($curl, CURLOPT_POST, 1);
34 curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
37 curl_setopt($curl, CURLOPT_PUT, 1);
45 curl_setopt($curl, CURLOPT_URL, $url);
49 // curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
[all …]
/plugin/elasticsearch/vendor/ezimuel/ringphp/src/Client/
DCurlFactory.php11 * Creates curl resources from a request
16 * Creates a cURL handle, header resource, and body resource based on a
20 * @param null|resource $handle Optionally provide a curl handle to modify
22 * @return array Returns an array of the curl handle, headers array, and
40 if (isset($request['client']['curl'])) {
42 $request['client']['curl'],
58 * Creates a response hash from a cURL result.
90 return !empty($response['curl']['errno']) || !isset($response['status'])
108 // Retry when nothing is present or when curl failed to rewind.
110 && (empty($response['curl']['errno'])
[all …]
DCurlHandler.php8 * HTTP handler that uses cURL easy handles as a transport layer.
12 * When using the CurlHandler, custom curl options can be specified as an
13 * associative array of curl option constants mapping to values in the
14 * **curl** key of the "client" key of the request.
21 /** @var array Array of curl easy handles */
24 /** @var array Array of owned curl easy handles */
33 * - factory: Optional callable factory used to create cURL handles.
35 * array of the curl handle, headers resource, and body resource.
91 $response['curl']['error'] = curl_error($h);
92 $response['curl']['errno'] = curl_errno($h);
[all …]
DClientUtils.php12 * First, the openssl.cafile and curl.cainfo php.ini settings are checked.
36 'C:\\windows\\system32\\curl-ca-bundle.crt',
37 'C:\\windows\\curl-ca-bundle.crt',
48 if ($ca = ini_get('curl.cainfo')) {
68 bundle which can be downloaded here (provided by the maintainer of cURL):
72 request option. See http://curl.haxx.se/docs/sslcerts.html for more
/plugin/youtrack/
Dhelper.php93 if (!extension_loaded('curl')) {
94 msg('You need to have curl installed and enabled to use the YouTrack plugin', -1);
100 $curl = curl_init();
101 curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 1);
102 curl_setopt($curl, CURLOPT_TIMEOUT, 1);
103 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
107 curl_setopt($curl, CURLOPT_POST, 1);
109 curl_setopt($curl, CURLOPT_POSTFIELDS, $params);
113 curl_setopt($curl, CURLOPT_PUT, 1);
121 curl_setopt($curl, CURLOPT_URL, $url);
[all …]
/plugin/authgooglesheets/vendor/guzzlehttp/guzzle/src/Handler/
DCurlHandler.php8 * HTTP handler that uses cURL easy handles as a transport layer.
10 * When using the CurlHandler, custom curl options can be specified as an
11 * associative array of curl option constants mapping to values in the
12 * **curl** key of the "client" key of the request.
22 * - factory: Optional curl factory used to create cURL handles.
DCurlFactory.php13 * Creates curl resources from a request
36 if (isset($options['curl']['body_as_string'])) {
37 $options['_body_as_string'] = $options['curl']['body_as_string'];
38 unset($options['curl']['body_as_string']);
51 if (isset($options['curl'])) {
52 $conf = array_replace($conf, $options['curl']);
86 * Completes a cURL transaction, either returning a response promise or a
148 // Retry when nothing is present or when curl failed to rewind.
183 'cURL error %s: %s (%s)',
186 'see https://curl.haxx.se/libcurl/c/libcurl-errors.html'
[all …]
/plugin/matrixnotifierwas/vendor/guzzlehttp/guzzle/src/Handler/
DCurlHandler.php9 * HTTP handler that uses cURL easy handles as a transport layer.
11 * When using the CurlHandler, custom curl options can be specified as an
12 * associative array of curl option constants mapping to values in the
13 * **curl** key of the "client" key of the request.
27 * - handle_factory: Optional curl factory used to create cURL handles.
DCurlFactory.php16 * Creates curl resources from a request
49 if (isset($options['curl']['body_as_string'])) {
50 $options['_body_as_string'] = $options['curl']['body_as_string'];
51 unset($options['curl']['body_as_string']);
64 if (isset($options['curl'])) {
65 $conf = \array_replace($conf, $options['curl']);
97 * Completes a cURL transaction, either returning a response promise or a
153 // Retry when nothing is present or when curl failed to rewind.
198 'cURL error %s: %s (%s)',
201 'see https://curl.haxx.se/libcurl/c/libcurl-errors.html'
[all …]
/plugin/autotweet2/
Daction.php161 // Request by using cURL
162 $this->curl = curl_init() ;
163 curl_setopt( $this->curl, CURLOPT_URL , $request_url ) ; // Request URL
164 curl_setopt( $this->curl, CURLOPT_HEADER, true ) ; // Get the header
165 curl_setopt( $this->curl, CURLOPT_CUSTOMREQUEST, $context['http']['method'] ) ; // Method
166 curl_setopt( $this->curl, CURLOPT_SSL_VERIFYPEER, false ) ; // Don't verify the certificate
167 …curl_setopt( $this->curl, CURLOPT_RETURNTRANSFER, true ) ; // Return the result of the curl_exec w…
168 curl_setopt( $this->curl, CURLOPT_HTTPHEADER, $context['http']['header'] ) ; // Header
170 … curl_setopt( $this->curl, CURLOPT_POSTFIELDS, $context['http']['content'] ) ; // Request body
172 curl_setopt( $this->curl, CURLOPT_TIMEOUT, 5 ) ; // Timeout seconds
[all …]
/plugin/twofactoryubiauth/
DYubiAuthenticator.php22 $curl = curl_init();
23 curl_setopt($curl, CURLOPT_URL, $url);
24 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
25 $result = curl_exec($curl);
26 curl_close($curl);
/plugin/indobible/
Dsyntax.php73 $curl = curl_init();
77 curl_setopt($curl, CURLOPT_POST, 1);
80 curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
83 curl_setopt($curl, CURLOPT_PUT, 1);
91 …curl_setopt($curl, CURLOPT_HTTPHEADER, array("X-Requested-With: XMLHttpRequest", "Content-Type: ap…
92 curl_setopt($curl, CURLOPT_URL, $url);
93 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
95 $result = curl_exec($curl);
97 curl_close($curl);
/plugin/authssocas/vendor/apereo/phpcas/source/CAS/Request/
H A DCurlRequest.php31 * Provides support for performing web-requests via curl
46 * Set additional curl options
68 * initialize the CURL session
79 'CURL error #'.curl_errno($ch).': '.curl_error($ch)
88 // close the CURL session
96 * Internal method to initialize our cURL handle and configure the request.
100 * @return resource|false The cURL handle on success, false on failure
105 * initialize the CURL session
122 phpCAS::trace('CURL: Set CURLOPT_CAINFO ' . $this->caCertPath);
129 * Configure curl to capture our output.
[all …]
/plugin/authgooglesheets/vendor/monolog/monolog/src/Monolog/Handler/
DLogglyHandler.php34 * Caches the curl handlers for every given endpoint.
49 * @throws MissingExtensionException If the curl extension is missing
53 if (!extension_loaded('curl')) {
54 … throw new MissingExtensionException('The curl extension is needed to use the LogglyHandler');
63 * Loads and returns the shared curl handler for the given endpoint.
79 * Starts a fresh curl session for the given endpoint and returns its handler.
153 Curl\Util::execute($ch, 5, false);
/plugin/combo/vendor/php-webdriver/webdriver/lib/Remote/
H A DHttpCommandExecutor.php174 protected $curl; variable in Facebook\\WebDriver\\Remote\\HttpCommandExecutor
190 $this->curl = curl_init();
193 curl_setopt($this->curl, CURLOPT_PROXY, $http_proxy);
195 curl_setopt($this->curl, CURLOPT_PROXYPORT, $http_proxy_port);
204 curl_setopt($this->curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
205 curl_setopt($this->curl, CURLOPT_USERPWD, $auth_creds);
208 curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
209 curl_setopt($this->curl, CURLOPT_FOLLOWLOCATION, true);
210 curl_setopt($this->curl, CURLOPT_HTTPHEADER, static::DEFAULT_HTTP_HEADERS);
230 $this->curl,
[all …]
/plugin/elasticsearch/vendor/ruflin/elastica/src/Transport/
DHttp.php29 * Curl resource to reuse.
31 * @var \CurlHandle|resource|null Curl resource to reuse
84 // curl will decode the response automatically if the response is encoded
160 // cURL opt returntransfer leaks memory, therefore OB instead.
193 * Called to add additional curl params.
195 * @param \CurlHandle|resource $curlConnection Curl connection
199 if ($this->getConnection()->hasConfig('curl')) {
200 foreach ($this->getConnection()->getConfig('curl') as $key => $param) {
207 * Return Curl resource.
/plugin/recaptcha2/lib/ReCaptcha/RequestMethod/
DCurl.php9 * Sends cURL request to the reCAPTCHA service.
11 class Curl implements RequestMethod class
14 * URL to which requests are sent via cURL.
20 * Submit the cURL request with the specified parameters.

12345678910>>...14