PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

HttpRequest::addCookies> <HttpInflateStream::finish
Last updated: Fri, 01 Jun 2007

view this page in

HttpRequest

(No version information available, might be only in CVS)

HttpRequest — HTTP Request Class

Synopsis

   class HttpRequest
  

Class Members

Properties

Table 116. Instance Properties

ModifiersTypeNameDescription
protectedarrayoptionsrequest options to configure the request; see request options
protectedarraypostFieldsform data: array("fieldname" => "fieldvalue")
protectedarraypostFilesfiles to upload: array(array("name" => "image", "file" => "/home/u/images/u.png", "type" => "image/png"))
protectedarrayresponseInfoinformation (statistical) about the request/response; see Request/response information
protectedHttpMessageresponseMessagethe response message
protectedintegerresponseCodethe numerical response code
protectedstringresponseStatusthe literal response status text
protectedintegermethodthe request method to use
protectedstringurlthe request url
protectedstringcontentTypethe content type to use for raw post requests
protectedstringrawPostDataraw post data
protectedstringqueryDataquery parameters
protectedstringputFilethe file to upload with a PUT request
protectedstringputDataraw data to upload with a PUT request
protectedHttpMessagehistorythe whole request/response history if history logging is enabled
publicbooleanrecordHistorywhether to enable history logging

Predefined Constants

Table 117. 

TypeNameDescription
integerMETH_GETGET request method
integerMETH_HEADHEAD request method
integerMETH_POSTPOST request method
integerMETH_PUTPUT request method
integerMETH_DELETEDELETE request method
integerMETH_OPTIONSOPTIONS request method
integerMETH_TRACETRACE request method
integerMETH_CONNECTCONNECT request method
integerMETH_PROPFINDPROPFIND request method
integerMETH_PROPPATCHPROPPATCH request method
integerMETH_MKCOLMKCOL request method
integerMETH_COPYCOPY request method
integerMETH_MOVEMOVE request method
integerMETH_LOCKLOCK request method
integerMETH_UNLOCKUNLOCK request method
integerMETH_VERSION_CONTROLVERSION-CONTROL request method
integerMETH_REPORTREPORT request method
integerMETH_CHECKOUTCHECKOUT request method
integerMETH_CHECKINCHECKIN request method
integerMETH_UNCHECKOUTUNCHECKOUT request method
integerMETH_MKWORKSPACEMKWORKSPACE request method
integerMETH_UPDATEUPDATE request method
integerMETH_LABELLABEL request method
integerMETH_MERGEMERGE request method
integerMETH_BASELINE_CONTROLBASELINE-CONTROL request method
integerMETH_MKACTIVITYMKACTIVITY request method
integerMETH_ACLACL request method
integerVERSION_1_0HTTP protocol version 1.0
integerVERSION_1_1HTTP protocol version 1.1
integerVERSION_ANYany HTTP protocol version
integerAUTH_BASICbasic authentication
integerAUTH_DIGESTdigest authentication
integerAUTH_NTLMNTLM authentication
integerAUTH_GSSNEGGSS negotiate authentication
integerAUTH_ANYany authentication
integerPROXY_SOCKS4SOCKS v4 proxy
integerPROXY_SOCKS5SOCKS v5 proxy
integerPROXY_HTTPHTTP proxy
integerSSL_VERSION_TLSv1use TLS v1
integerSSL_VERSION_SSLv2use SSL v2
integerSSL_VERSION_SSLv3use SSL v3
integerSSL_VERSION_ANYuse any SSL/TLS method
integerIPRESOLVE_V4resolve via IPv4 only
integerIPRESOLVE_V6resolve via IPv6 only
integerIPRESOLVE_ANYuse any resolving methods

Methods

HttpRequest::construct()
HttpRequest::getOptions()
HttpRequest::setOptions()
HttpRequest::getSslOptions()
HttpRequest::addSslOptions()
HttpRequest::setSslOptions()
HttpRequest::getUrl()
HttpRequest::setUrl()
HttpRequest::getMethod()
HttpRequest::setMethod()
HttpRequest::enableCookies()
HttpRequest::resetCookies()
HttpRequest::getCookies()
HttpRequest::addCookies()
HttpRequest::setCookies()
HttpRequest::getHeaders()
HttpRequest::addHeaders()
HttpRequest::setHeaders()
HttpRequest::getContentType()
HttpRequest::setContentType()
HttpRequest::getQueryData()
HttpRequest::addQueryData()
HttpRequest::setQueryData()
HttpRequest::getPostFields()
HttpRequest::addPostFields()
HttpRequest::setPostFields()
HttpRequest::getPostFiles()
HttpRequest::addPostFile()
HttpRequest::setPostFiles()
HttpRequest::getRawPostData()
HttpRequest::addRawPostData()
HttpRequest::setRawPostData()
HttpRequest::getPutData()
HttpRequest::addPutData()
HttpRequest::setPutData()
HttpRequest::getPutFile()
HttpRequest::setPutFile()
HttpRequest::send()
HttpRequest::getRequestMessage()
HttpRequest::getRawRequestMessage()
HttpRequest::getResponseMessage()
HttpRequest::getRawResponseMessage()
HttpRequest::getResponseCode()
HttpRequest::getResponseStatus()
HttpRequest::getResponseHeader()
HttpRequest::getResponseCookies()
HttpRequest::getResponseBody()
HttpRequest::getResponseData()
HttpRequest::getResponseInfo()
HttpRequest::clearHistory()
HttpRequest::getHistory()


add a note add a note User Contributed Notes
HttpRequest
There are no user contributed notes for this page.

HttpRequest::addCookies> <HttpInflateStream::finish
Last updated: Fri, 01 Jun 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites