class-CAS_Request_AbstractRequest

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.
Overview

Classes

Interfaces

Exceptions

Functions

Class CAS_Request_AbstractRequest

Provides support for performing web-requests via curl

CAS_Request_AbstractRequest implements CAS_Request_RequestInterface

Direct known subclasses

CAS_Request_CurlRequest
Abstract
Package: PhpCAS
Category: Authentication
License: Apache License 2.0
Author: Adam Franco afranco@middlebury.edu
Link: https://wiki.jasig.org/display/CASC/phpCAS
Class: CAS_Request_AbstractRequest
Located at shared/cas/source/CAS/Request/AbstractRequest.php
Methods summary
public
# setUrl( string $url )

Set the URL of the Request

public
# addCookie( string $name, string $value )

Add a cookie to the request.

public
# addCookies( array $cookies )

Add an array of cookies to the request. The cookie array is of the form array('cookie_name' => 'cookie_value', 'cookie_name2' => cookie_value2')

public
# addHeader( string $header )

Add a header string to the request.

public
# addHeaders( array $headers )

Add an array of header strings to the request.

public
# makePost( )

Make the request a POST request rather than the default GET request.

public
# setPostBody( string $body )

Add a POST body to the request

public
# setSslCaCert( string $caCertPath, boolean $validate_cn = true )

Specify the path to an SSL CA certificate to validate the server with.

public boolean
# send( )

Perform the request.

abstract protected boolean
# sendRequest( )

Send the request and store the results.

protected
# storeResponseHeaders( array $headers )

Store the response headers.

protected
# storeResponseHeader( string $header )

Store a single response header to our array.

protected
# storeResponseBody( string $body )

Store the response body.

protected
# storeErrorMessage( string $message )

Add a string to our error message.

public array
# getResponseHeaders( )

Answer the headers of the response.

public integer
# getResponseStatusCode( )

Answer HTTP status code of the response

public string
# getResponseBody( )

Answer the body of response.

public string
# getErrorMessage( )

Answer a message describing any errors if the request failed.

Properties summary
protected $url
# null
protected array $cookies
# array()
protected array $headers
# array()
protected boolean $isPost
# false
protected $postBody
# null
protected $caCertPath
# null
protected boolean $validateCN
# true
private boolean $_sent
# false
private array $_responseHeaders
# array()
private $_responseBody
# null
private string $_errorMessage
# ''
 

© 2004-2018 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy