Ampache
[ class tree: Ampache ] [ index: Ampache ] [ all elements ]

Class: soap_transport_http

Source Location: /modules/nusoap/class.soap_transport_http.php

Class Overview

nusoap_base
   |
   --soap_transport_http

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


Author(s):

Version:

  • $Id$

Variables

Methods



Class Details

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



Tags:

author:  Scott Nichol <snichol@users.sourceforge.net>
author:  Dietrich Ayala <dietrich@ganx4.com>
version:  $Id$
access:  public


[ Top ]


Class Variables

$authtype =  ''

[line 41]


Type:   mixed


[ Top ]

$certRequest = array()

[line 43]


Type:   mixed


[ Top ]

$ch =  false

[line 35]


Type:   mixed


[ Top ]

$ch_options = array()

[line 36]


Type:   mixed


[ Top ]

$digestRequest = array()

[line 42]


Type:   mixed


[ Top ]

$digest_uri =  ''

[line 19]


Type:   mixed


[ Top ]

$encoding =  ''

[line 26]


Type:   mixed


[ Top ]

$host =  ''

[line 21]


Type:   mixed


[ Top ]

$incoming_cookies = array()

[line 29]


Type:   mixed


[ Top ]

$incoming_headers = array()

[line 28]


Type:   mixed


[ Top ]

$incoming_payload =  ''

[line 31]


Type:   mixed


[ Top ]

$outgoing_headers = array()

[line 27]


Type:   mixed


[ Top ]

$outgoing_payload =  ''

[line 30]


Type:   mixed


[ Top ]

$password =  ''

[line 40]


Type:   mixed


[ Top ]

$path =  ''

[line 23]


Type:   mixed


[ Top ]

$persistentConnection =  false

[line 34]


Type:   mixed


[ Top ]

$port =  ''

[line 22]


Type:   mixed


[ Top ]

$protocol_version =  '1.0'

[line 25]


Type:   mixed


[ Top ]

$proxy =  null

[line 38]


Type:   mixed


[ Top ]

$request_method =  'POST'

[line 24]


Type:   mixed


[ Top ]

$response_status_line =

[line 32]


Type:   mixed


[ Top ]

$scheme =  ''

[line 20]


Type:   mixed


[ Top ]

$uri =  ''

[line 18]


Type:   mixed


[ Top ]

$url =  ''

[line 17]


Type:   mixed


[ Top ]

$username =  ''

[line 39]


Type:   mixed


[ Top ]

$useSOAPAction =  true

[line 33]


Type:   mixed


[ Top ]

$use_curl =  false

[line 37]


Type:   mixed


[ Top ]



Class Methods


constructor soap_transport_http [line 60]

soap_transport_http soap_transport_http( string $url, [array $curl_options = NULL], [boolean $use_curl = false])

constructor



Tags:

access:  public


Parameters:

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

[ Top ]

method decodeChunked [line 631]

string decodeChunked( string $buffer, string $lb)

decode a string that is encoded w/ "chunked' transfer encoding as defined in RFC2068 19.4.6



Tags:

deprecated:  
access:  public


Parameters:

string   $buffer  
string   $lb  

[ Top ]

method send [line 413]

string send( string $data, [integer $timeout = 0], [integer $response_timeout = 30], [array $cookies = NULL])

sends the SOAP request and gets the SOAP response via HTTP[S]



Tags:

return:  data
access:  public


Parameters:

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

[ Top ]

method sendHTTPS [line 454]

string sendHTTPS( string $data, [integer $timeout = 0], [integer $response_timeout = 30], array $cookies)

sends the SOAP request and gets the SOAP response via HTTPS using CURL



Tags:

return:  data
deprecated:  
access:  public


Parameters:

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

[ Top ]

method setContentType [line 1170]

void setContentType( string $type, [mixed $charset = false])

sets the content-type for the SOAP message to be sent



Tags:

access:  public


Parameters:

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

[ Top ]

method setCredentials [line 468]

void setCredentials( string $username, string $password, [string $authtype = 'basic'], [array $digestRequest = array()], [array $certRequest = array()])

if authenticating, set user credentials here



Tags:

access:  public


Parameters:

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

[ Top ]

method setEncoding [line 552]

void setEncoding( [string $enc = 'gzip, deflate'])

use http encoding



Tags:

access:  public


Parameters:

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

[ Top ]

method setProxy [line 576]

void setProxy( string $proxyhost, string $proxyport, [string $proxyusername = ''], [string $proxypassword = ''], [string $proxyauthtype = 'basic'])

set proxy info here



Tags:

access:  public


Parameters:

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

[ Top ]

method setSOAPAction [line 542]

void setSOAPAction( string $soapaction)

set the soapaction value



Tags:

access:  public


Parameters:

string   $soapaction  

[ Top ]

method usePersistentConnection [line 1180]

boolean usePersistentConnection( )

specifies that an HTTP persistent connection should be used



Tags:

return:  whether the request was honored by this method.
access:  public


[ Top ]


Documentation generated on Thu, 12 Feb 2009 07:59:54 +0900 by phpDocumentor 1.4.2