Changeset 20321 for lang/php

Show
Ignore:
Timestamp:
09/30/08 23:57:12 (2 months ago)
Author:
sasezaki
Message:

add unittest

Location:
lang/php/Scraper
Files:
4 added
1 modified

Legend:

Unmodified
Added
Removed
  • lang/php/Scraper/bin/exthtml.php

    r15201 r20321  
    3434    'xpath|x=s' => 'xpath', 
    3535    'referer|e=s' => 'referer', 
    36     'cookie|k=s' => 'cookie', 
    37 //    "c|cookie-jar=s" => \$cookie, 
    38 //    'cookiejar|j=s'=> 'using cookie jar "loginUrl/user/pass"', 
     36    //'cookie|k=s' => 'cookie', 
     37    'cookieJar|c=s' => 'cookie', 
    3938    'agent|a=s' => 'useragent', 
    4039    'nextlink|n=s' => 'nextlink', 
     
    6362    $client->setAuth($basicusername, $basicpassword, Zend_Http_Client::AUTH_BASIC); 
    6463} 
    65 if ($console->cookie) { 
    66 $cookie = (is_file($console->cookie)) ? file_get_contents($console->cookie) : $console->cookie; 
    67 $client->setCookie($cookie); 
     64if ($console->cookieJar) { 
     65    require_once 'Diggin/Http/CookieJar/Loader/Firefox3.php'; 
     66    //Diggin_Http_CookieJar_Loader_Firefox3::load(); 
     67$client->setCookieJar(); 
     68//$cookie = (is_file($console->cookie)) ? file_get_contents($console->cookie) : $console->cookie; 
     69//$client->setCookie($cookie); 
    6870} 
    6971if ($console->stoptime) {