[ Index ]
 

Code source de Mantis 1.1.0rc3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/api/soap/nusoap/ -> class.soap_transport_http.php (sommaire)

(pas de description)

Poids: 1305 lignes (46 kb)
Inclus ou requis: 2 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

soap_transport_http:: (22 méthodes):
  soap_transport_http()
  setCurlOption()
  setHeader()
  unsetHeader()
  setURL()
  io_method()
  connect()
  send()
  sendHTTPS()
  setCredentials()
  setSOAPAction()
  setEncoding()
  setProxy()
  isSkippableCurlHeader()
  decodeChunked()
  buildPayload()
  sendRequest()
  getResponse()
  setContentType()
  usePersistentConnection()
  parseCookie()
  getCookiesForRequest()


Classe: soap_transport_http  - X-Ref

transport class for sending/receiving data via HTTP and HTTPS
NOTE: PHP must be compiled with the CURL extension for HTTPS support

soap_transport_http($url, $curl_options = NULL, $use_curl = false)   X-Ref
constructor

param: string $url The URL to which to connect
param: array $curl_options User-specified cURL options
param: boolean $use_curl Whether to try to force cURL use

setCurlOption($option, $value)   X-Ref
sets a cURL option

param: mixed $option The cURL option (always integer?)
param: mixed $value The cURL option value

setHeader($name, $value)   X-Ref
sets an HTTP header

param: string $name The name of the header
param: string $value The value of the header

unsetHeader($name)   X-Ref
unsets an HTTP header

param: string $name The name of the header

setURL($url)   X-Ref
sets the URL to which to connect

param: string $url The URL to which to connect

io_method()   X-Ref
gets the I/O method to use

return: string    I/O method to use (socket|curl|unknown)

connect($connection_timeout=0,$response_timeout=30)   X-Ref
establish an HTTP connection

param: integer $timeout set connection timeout in seconds
param: integer $response_timeout set response timeout in seconds
return: boolean true if connected, false if not

send($data, $timeout=0, $response_timeout=30, $cookies=NULL)   X-Ref
sends the SOAP request and gets the SOAP response via HTTP[S]

param: string $data message data
param: integer $timeout set connection timeout in seconds
param: integer $response_timeout set response timeout in seconds
param: array $cookies cookies to send
return: string data

sendHTTPS($data, $timeout=0, $response_timeout=30, $cookies)   X-Ref
sends the SOAP request and gets the SOAP response via HTTPS using CURL

param: string $data message data
param: integer $timeout set connection timeout in seconds
param: integer $response_timeout set response timeout in seconds
param: array $cookies cookies to send
return: string data

setCredentials($username, $password, $authtype = 'basic', $digestRequest = array()   X-Ref
if authenticating, set user credentials here

param: string $username
param: string $password
param: string $authtype (basic|digest|certificate|ntlm)
param: array $digestRequest (keys must be nonce, nc, realm, qop)
param: array $certRequest (keys must be cainfofile (optional), sslcertfile, sslkeyfile, passphrase, certpassword (optional), verifypeer (optional), verifyhost (optional): see corresponding options in cURL docs)

setSOAPAction($soapaction)   X-Ref
set the soapaction value

param: string $soapaction

setEncoding($enc='gzip, deflate')   X-Ref
use http encoding

param: string $enc encoding style. supported values: gzip, deflate, or both

setProxy($proxyhost, $proxyport, $proxyusername = '', $proxypassword = '', $proxyauthtype = 'basic')   X-Ref
set proxy info here

param: string $proxyhost use an empty string to remove proxy
param: string $proxyport
param: string $proxyusername
param: string $proxypassword
param: string $proxyauthtype (basic|ntlm)

isSkippableCurlHeader(&$data)   X-Ref
Test if the given string starts with a header that is to be skipped.
Skippable headers result from chunked transfer and proxy requests.

returns: boolean    Whether a skippable header was found.
param: string $data The string to check.

decodeChunked($buffer, $lb)   X-Ref
decode a string that is encoded w/ "chunked' transfer encoding
as defined in RFC2068 19.4.6

returns: string
param: string $buffer
param: string $lb

buildPayload($data, $cookie_str = '')   X-Ref
Writes the payload, including HTTP headers, to $this->outgoing_payload.

param: string $data HTTP body
param: string $cookie_str data for HTTP Cookie header
return: void

sendRequest($data, $cookies = NULL)   X-Ref
sends the SOAP request via HTTP[S]

param: string $data message data
param: array $cookies cookies to send
return: boolean    true if OK, false if problem

getResponse()   X-Ref
gets the SOAP response via HTTP[S]

return: string the response (also sets member variables like incoming_payload)

setContentType($type, $charset = false)   X-Ref
sets the content-type for the SOAP message to be sent

param: string $type the content type, MIME style
param: mixed $charset character set used for encoding (or false)

usePersistentConnection()   X-Ref
specifies that an HTTP persistent connection should be used

return: boolean whether the request was honored by this method.

parseCookie($cookie_str)   X-Ref
Pas de description

getCookiesForRequest($cookies, $secure=false)   X-Ref
sort out cookies for the current request

param: array $cookies array with all cookies
param: boolean $secure is the send-content secure or not?
return: string for Cookie-HTTP-Header



Généré le : Thu Nov 29 09:42:17 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics