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

Class: Dot_Curl

Source Location: /library/Dot/Curl.php

Class Overview


CURL with TOR and country proxy features


Author(s):

Variables

Methods



Class Details

[line 19]
CURL with TOR and country proxy features

CURL with TOR and country proxy features




Tags:

author:  DotKernel Team <team@dotkernel.com>


[ Top ]


Class Variables

$cookies = array()

[line 118]

Cookies , leave empty if not needed

Cookies , leave empty if not needed




Tags:

access:  public

Type:   array


[ Top ]

$countryId =  0

[line 52]

Use in case you want to use country proxy feature

Use in case you want to use country proxy feature




Tags:

access:  public

Type:   integer


[ Top ]

$defaultUserAgent =  ''

[line 40]

Used in case you want to specify userAgent

Used in case you want to specify userAgent




Tags:

access:  public

Type:   string


[ Top ]

$errors = array()

[line 100]

Errors , view these in case no data is shown

Errors , view these in case no data is shown




Tags:

access:  public

Type:   array


[ Top ]

$followLocation =  true

[line 88]

General settings: followLocation

General settings: followLocation




Tags:

access:  public

Type:   bool


[ Top ]

$header =  true

[line 76]

General settings: header

General settings: header




Tags:

access:  public

Type:   bool


[ Top ]

$info = array()

[line 106]

Info , stores curl_getinfo() response

Info , stores curl_getinfo() response




Tags:

access:  public

Type:   array


[ Top ]

$ports = array(9000, 9001, 9002, 9003, 9004, 9005, 9006, 9007, 9008, 9009, 9010, 9011, 9012, 9013, 9014, 9015, 9016, 9017, 9018, 9019, 9020)

[line 64]

an array with available ports

an array with available ports




Tags:

access:  public

Type:   array


[ Top ]

$postVars = array()

[line 112]

Post vars , leave empty if not needed

Post vars , leave empty if not needed




Tags:

access:  public

Type:   array


[ Top ]

$returnTransfer =  true

[line 82]

General settings: returnTransfer

General settings: returnTransfer




Tags:

access:  public

Type:   bool


[ Top ]

$sslVerifyPeer =  false

[line 70]

General settings: sslVerifyPeer

General settings: sslVerifyPeer




Tags:

access:  public

Type:   bool


[ Top ]

$timeOut =  200

[line 94]

General settings: timeOut

General settings: timeOut




Tags:

access:  public

Type:   int


[ Top ]

$torIp =  '127.0.0.1'

[line 58]

localhost ip

localhost ip




Tags:

access:  public

Type:   string


[ Top ]

$userAgents = array(
      'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3',
      'Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20040913 Firefox/0.10',
      'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)',
      'Microsoft Internet Explorer/Version (Platform)',
      'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)', 'Googlebot/2.1 (+http://www.googlebot.com/bot.html)',
      'msnbot/1.0 (+http://search.msn.com/msnbot.htm)',
      'Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)'
   )

[line 26]

User agent

User agent




Tags:

access:  public

Type:   array


[ Top ]

$useTor =  true

[line 46]

Used in case you want to bypass tor proxy

Used in case you want to bypass tor proxy




Tags:

access:  public

Type:   bool


[ Top ]



Class Methods


method getMulti [line 202]

array getMulti( array $urls, [array $referers = array()])

Fetch multiple urls at once

Fetch multiple urls at once




Tags:

return:  with requests results
access:  public


Parameters:

array   $urls  
array   $referers   [optional]

[ Top ]

method getSingle [line 259]

a getSingle( string $url, [string $referer = ''])

Fetch a single url

Fetch a single url




Tags:

return:  string
access:  public


Parameters:

string   $url  
string   $referer   [optional]

[ Top ]

method setOptions [line 127]

void setOptions( object $ch, string $url, [string $referer = ''])

Set curl options

Set curl options




Tags:

access:  private


Parameters:

object   $ch  
string   $url  
string   $referer   [optional]

[ Top ]


Documentation generated on Wed, 21 Jul 2010 07:34:38 +0000 by phpDocumentor 1.4.3