TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Http\HttpRequest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Http\HttpRequest:
t3lib_http_Request

Public Member Functions

 __construct ($url=NULL, $method=self::METHOD_GET, array $config=array())
 
 setConfiguration (array $config=array())
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! HTTP Request Utility class

Extends and sets TYPO3 environment defaults

Author
Philipp Gampe phili.nosp@m.pp.g.nosp@m.ampe@.nosp@m.typo.nosp@m.3.org

Definition at line 26 of file HttpRequest.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Http\HttpRequest::__construct (   $url = NULL,
  $method = self::METHOD_GET,
array  $config = array() 
)

Default constructor - sets TYPO3 defaults

Parameters
string | \Net_Url2$urlRequest URL
string$methodRequest Method (GET, HEAD or POST). Redirects reset this to GET unless "strict_redirects" is set.
array$configConfiguration for this request instance http://pear.php.net/manual/en/package.http.http-request2.config.php

Definition at line 36 of file HttpRequest.php.

References TYPO3\CMS\Core\Http\HttpRequest\setConfiguration().

Member Function Documentation

◆ setConfiguration()

TYPO3\CMS\Core\Http\HttpRequest::setConfiguration ( array  $config = array())

Sets the configuration for this object instance. Merges default values with provided $config and overrides all not provided values with those from $TYPO3_CONF_VARS

Parameters
array$configConfiguration options which override the default configuration
Returns
void
See also
http://pear.php.net/manual/en/package.http.http-request2.config.php

Definition at line 50 of file HttpRequest.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Referenced by TYPO3\CMS\Core\Http\HttpRequest\__construct().