JavaScript Editor Javascript debugger     Website design 

HttpRequest

HTTP Request Class ()

Synopsis

class HttpRequest

Class Members

Properties

Table 118. 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 119. 

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