Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • 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
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • cHttpRequest
  • cHttpRequestCurl
  • cHttpRequestSocket
  • Overview
  • Package
  • Class
  • Todo
  • Download

Class cHttpRequestSocket

fsockopen implementation of HttpRequest

cHttpRequest
Extended by cHttpRequestSocket
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.httprequestsocket.php
Methods summary
public
# __construct( string $url = '' )

Basic constructor

Basic constructor

Parameters

$url
URL for the request

See

cHttpRequest::__construct()
cHttpRequest::getHttpRequest()
public
# setURL( string $url )

Parameters

$url
the URL

See

cHttpRequest::setURL()
public
# setGetParams( array $array )

Parameters

$array
An associative array containing keys and values of the GET parameters

See

cHttpRequest::setGetParams()
public
# setPostParams( array $array )

Parameters

$array
An associative array containing keys and values of the POST parameters

See

cHttpRequest::setPostParams()
public
# setHeaders( array $array )

Parameters

$array
An associative array containing the HTTP headers

See

cHttpRequest::setHeaders()
protected
# prepareHeaders( )

Inserts the custom headers into the header string

Inserts the custom headers into the header string

protected
# prepareGetRequest( )

Appends teh GET array to the URL

Appends teh GET array to the URL

protected
# preparePostRequest( )

Prepares the headers to send a POST request and encodes the data

Prepares the headers to send a POST request and encodes the data

protected string|boolean
# sendRequest( boolean $return, string $method, boolean $returnHeaders = false )

Send the request to the server

Send the request to the server

Parameters

$return
Wether the function should return the servers response
$method
GET or PUT
$returnHeaders
Wether the headers should be included in the response

Returns

string|boolean
public string|boolean
# postRequest( boolean $return = true, boolean $returnHeaders = false )

Parameters

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

Returns

string|boolean
False on error, response otherwise

See

cHttpRequest::postRequest()
public string|boolean
# getRequest( boolean $return = true, boolean $returnHeaders = false )

Parameters

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

Returns

string|boolean
False on error, response otherwise

See

cHttpRequest::getRequest()
public string|boolean
# request( boolean $return = true, boolean $returnHeaders = false )

Parameters

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

Returns

string|boolean
False on error, response otherwise

See

cHttpRequest::request()
Methods inherited from cHttpRequest
getHttpRequest()
Properties summary
protected array $postArray

Array for the post parameters

Array for the post parameters

#
protected array $getArray

Array for the get parameters

Array for the get parameters

#
protected array $headerArray

Array for the HTTP-headers

Array for the HTTP-headers

#
protected string $url

Request URL

Request URL

#
protected string $boundary

Boundary for the multipart from-data

Boundary for the multipart from-data

#
protected string $header

The HTTP header

The HTTP header

#
protected string $body

The HTTP body

The HTTP body

#
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen