library/Dot/Curl.php

Properties

Description

DotBoost Technologies Inc.

DotKernel Application Framework


Classes

Dot_Curl

Properties

 
 
No 
No 

Description

CURL with TOR and country proxy features

Methods

_setOptions, getMulti, getSingle,

_setOptions(   $ch, string   $url, string   $referer, ) : void

Description

Set curl options

Arguments

Name Type Description Default
$ch n/a
$url string
$referer string [optional]

Return value

Type Description
void

Tags

Name Description
access private

getMulti( array   $urls, array   $referers = array, ) : array

Description

Fetch multiple urls at once

Arguments

Name Type Description Default
$urls array
$referers array [optional] array

Return value

Type Description
array with requests results

Tags

Name Description
access public

getSingle( string   $url, string   $referer, ) : a

Description

Fetch a single url

Arguments

Name Type Description Default
$url string
$referer string [optional]

Return value

Type Description
a string

Tags

Name Description
access public

Properties

$botUserAgents, $cookieFile, $cookieFiles, $cookies, $countryId, $defaultUserAgent, $errors, $followLocation, $header, $info, $interface, $interfaces, $ports, $postString, $postStrings, $returnTransfer, $sslVerifyPeer, $timeOut, $torIp, $useTor, $userAgents, $writeToFileHandle, $writeToFileHandles, $writeToFileRange, $writeToFileRanges,

  public  $botUserAgents = array

Bot user agents, not used yetarray


  public  $cookieFile =

Cookie file path , example: 'cookies/file.txt'string


  public  $cookieFiles = array

Cookie file paths , example: array('cookies/file1.txt', 'cookies/file2.txt', ..)array


  public  $cookies = array

Cookies , leave empty if not neededarray


  public  $countryId = 0

Use in case you want to use country proxy featureinteger


  public  $defaultUserAgent =

Used in case you want to specify userAgentstring


  public  $errors = array

Errors , view these in case no data is shownarray


  public  $followLocation = true

General settings: followLocationbool


  public  $header = false

General settings: headerbool


  public  $info = array

Info , stores curl_getinfo() responsearray


  public  $interface =

Interface to use (ip) , example: '123.123.123.123'string


  public  $interfaces = array

Interfaces to use (ip) , example: array('123.123.123.123', '123.123.123.124', ..)array


  public  $ports = array

an array with available portsarray


  public  $postString =

Post string, use http_build_query(post array) , leave empty if not neededstring


  public  $postStrings = array

Post strings, use array(http_build_query(post array), http_build_query(post array), ..) leave empty if not neededarray


  public  $returnTransfer = true

General settings: returnTransferbool


  public  $sslVerifyPeer = false

General settings: sslVerifyPeerbool


  public  $timeOut = 200

General settings: timeOutint


  public  $torIp = 127.0.0.1

localhost ipstring


  public  $useTor = false

Used in case you want to bypass tor proxybool


  public  $userAgents = array

User agentarray


  public  $writeToFileHandle = NULL

Use $this->writeToFileHandle = fopen(...) to write curl output directly to the file, close files after curl is done leave empty if not neededpointer


  public  $writeToFileHandles = array

Use $this->writeToFileHandles = array(fopen(...), fopen(...)) to write curl output directly to the files, close files after curl is done , leave empty if not neededarray


  public  $writeToFileRange = 0

File size, use it in case connection stopped and file is not complete , leave empty if not neededint


  public  $writeToFileRanges = array

File sizes, use it in case connection stopped and files are not complete , leave empty if not neededint


Documentation was generated by DocBlox.

Packages

  • Admin
    • Admin
      Admin Model Here are all the actions related to the user
    • Admin_View
      Admin View Class class that prepare output related to User controller
    • System
      System Model Here are all the actions related to the system settings
    • System_View
      System View Class class that prepare output related to User controller
    • User
      User Model Here are all the actions related to the user
    • User_View
      User View Class class that prepare output related to User controller
    • View
      Admin View abstract over the Dot_Template class
  • DotKernel
    • DotLibrary
    • Frontend
      • Page
        Page Model Dummy class, is not doing anything
      • Page
        Page Model Dummy class, is not doing anything yet
      • Page_View
        Page View Class functions that prepare output related to Page controller
      • User
        User Model Here are all the actions related to the user
      • User_View
        User View Class class that prepare output related to User controller
      • View
        View Model abstract over the Dot_Template class
    • Mobile
      • Page_View
        Page View Class functions that prepare output related to Page controller
      • View
        View Model abstract over the Dot_Template class
    • Rss
      • Sample
        Sample Model Here are all the actions related to the Sample
      • Sample_View
        Sample View Class
      • View
        View class - used for outputting rss content