Back to Joomla project (class list)

Class CurlTransport - list of methods

HTTP transport class for using cURL.

Extends

Package: Joomla\CMS\Http\Transport
Copyright: (C) 2011 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Http/Transport/CurlTransport.php
Project: Joomla

Method Summary

public \Joomla\CMS\Http\Response
(mixed $method, \Joomla\Uri\UriInterface $uri, mixed $data = null, array $headers = [], mixed $timeout = null, mixed $userAgent = null)

Send a request to the server and return a Response object with the response.
Parameters
  • string $method The HTTP method for sending the request.
  • \Joomla\Uri\UriInterface $uri The URI to the resource to request.
  • mixed $data Either an associative array or a string to be sent with the request.
  • array $headers An array of request headers to send with the request.
  • int $timeout Read timeout in seconds.
  • string $userAgent The optional user agent string to send with the request.
Returns
  • \Joomla\CMS\Http\Response
Since
  • 1.7.3
-
  • \RuntimeException
Show source code of this method: request Source Code

protected \Joomla\CMS\Http\Response
(mixed $content, mixed $info)

Method to get a response object from a server response.
Parameters
  • string $content The complete server response, including headers as a string if the response has no errors.
  • array $info The cURL request information.
Returns
  • \Joomla\CMS\Http\Response
Since
  • 1.7.3
-
  • \Joomla\Http\Exception\InvalidResponseCodeException
Show source code of this method: getResponse Source Code

public static bool
()

Method to check if HTTP transport cURL is available for use
Returns
  • bool true if available, else false
Since
  • 3.0.0
Show source code of this method: isSupported Source Code

private bool
()

Check if redirects are allowed
Returns
  • bool
Since
  • 3.0.0
Show source code of this method: redirectsAllowed Source Code

Tags Summary

Since
1.7.3