Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cHttpRequest
  • cHttpRequestCurl
  • cHttpRequestSocket
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class cHttpRequest

Abstract HttpRequest class

Direct known subclasses

cHttpRequestCurl, cHttpRequestSocket
Abstract
Package: Core
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Mischa Holz
Located at classes/httprequest/class.httprequest.php
Methods summary
public static object
# getHttpRequest( string $url = '' )

Creates a new cHttpRequest object. The function determines the best extension to use and returns an object accordingly

Creates a new cHttpRequest object. The function determines the best extension to use and returns an object accordingly

Parameters

$url
string
$url URL of the HTTP request

Returns

object
extends cHttpRequest
abstract public
# __construct( string $url = '' )

Basic constructor

Basic constructor

Parameters

$url
string
$url URL of the HTTP request
abstract public string|boolean
# postRequest( boolean $return = true, boolean $returnHeaders = false )

Peform the request using POST

Peform the request using POST

Parameters

$return
boolean
$return If true, response of the server gets returned as string
$returnHeaders
boolean
$returnHeaders If true, headers will be included in the response

Returns

string|boolean
False on error, response otherwise
abstract public string|boolean
# getRequest( boolean $return = true, boolean $returnHeaders = false )

Peform the request using GET

Peform the request using GET

Parameters

$return
boolean
$return If true, response of the server gets returned as string
$returnHeaders
boolean
$returnHeaders If true, headers will be included in the response

Returns

string|boolean
False on error, response otherwise
abstract public string|boolean
# request( boolean $return = true, boolean $returnHeaders = false )

Peform the request using POST AND append all GET parameters

Peform the request using POST AND append all GET parameters

Parameters

$return
boolean
$return If true, response of the server gets returned as string
$returnHeaders
boolean
$returnHeaders If true, headers will be included in the response

Returns

string|boolean
False on error, response otherwise
abstract public
# setGetParams( array $array )

Set the GET parameters

Set the GET parameters

Parameters

$array
array
$array An associative array containing keys and values of the GET parameters
abstract public
# setPostParams( array $array )

Set the POST parameters

Set the POST parameters

Parameters

$array
array
$array An associative array containing keys and values of the POST parameters
abstract public
# setHeaders( array $array )

Set the HTTP headers

Set the HTTP headers

Parameters

$array
array
$array An associative array containing the HTTP headers
abstract public
# setURL( string $url )

Set the request URL

Set the request URL

Parameters

$url
string
$url the URL
CMS CONTENIDO 4.9.3 API documentation generated by ApiGen 2.8.0