Class WebRequest

Description

Request object used by the Tariqa::fetchUrl() operation

  • see: Tariqa::fetchUrl

Located in /lib/Tariqa/WebRequest.class.php (line 7)


	
			
Class Constant Summary
 HTTP_GET = "get"
 HTTP_HEAD = "head"
 HTTP_POST = "post"
Variable Summary
Pair[] $cookies
string $method
Pair[] $query
string $url
Method Summary
WebRequest __construct (string $url, [Pair[] $query = false], [Pair[] $cookies = false], [ $method = self::HTTP_GET], [ $follow_redirect = true])
Variables
Pair[] $cookies (line 48)

Cookies

  • access: public
boolean $follow_redirect (line 69)

Follow redirections (up to three)

  • access: public
string $method (line 63)

HTTP Method

  • see: self::HTTP_HEAD
  • see: self::HTTP_POST
  • see: self::HTTP_GET
  • access: public
Pair[] $query (line 54)

Query arguments

  • access: public
string $url (line 42)

URL

  • access: public
Methods
Constructor __construct (line 30)

Default constructor

  • access: public
WebRequest __construct (string $url, [Pair[] $query = false], [Pair[] $cookies = false], [ $method = self::HTTP_GET], [ $follow_redirect = true])
  • string $url: Url
  • Pair[] $query: An array of Pair containing the request arguments
  • Pair[] $cookies
  • $method
  • $follow_redirect
Class Constants
HTTP_GET = "get" (line 12)

HTTP GET method

HTTP_HEAD = "head" (line 20)

HTTP HEAD method

HTTP_POST = "post" (line 16)

HTTP POST method

Documentation generated on Mon, 30 Mar 2009 16:36:32 +0200 by phpDocumentor 1.4.1