Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, October 24, 2026

Diff for phpPlatonLib/HTML_Content/Content.php between version 1.20 and 1.21

version 1.20, 2004/12/02 15:39:32 version 1.21, 2004/12/02 15:49:11
Line 40  class HTML_Content
Line 40  class HTML_Content
         var $_content_type = null;          var $_content_type = null;
         var $_new_url      = null;          var $_new_url      = null;
         var $_cookies      = array();          var $_cookies      = array();
           var $_raw_cookies  = array();
         var $_fp           = null;          var $_fp           = null;
   
         function HTML_Content($file = null, $cookies = null)          function HTML_Content($file = null, $cookies = null)
Line 108  class HTML_Content
Line 109  class HTML_Content
                         foreach ($this->_cookies as $key => $val) {                          foreach ($this->_cookies as $key => $val) {
                                 $r->addCookie($key, $val);                                  $r->addCookie($key, $val);
                         }                          }
                           foreach ($this->_raw_cookies as $cookie) {
                                   $r->addCookie($cookie['name'], $cookie['value']);
                           }
                         $ret = $r->sendRequest();                          $ret = $r->sendRequest();
                         if ($ret !== true) {                          if ($ret !== true) {
                                 return $ret;                                  return $ret;
Line 123  class HTML_Content
Line 127  class HTML_Content
                                    echo $r->getResponseBody();                                     echo $r->getResponseBody();
                                    exit;                                     exit;
                                    } */                                     } */
                                 $this->_content_type = $r->getResponseHeader('Content-Type');  
                                 $data                = $r->getResponseBody();                                  $data                = $r->getResponseBody();
                                   $this->_content_type = $r->getResponseHeader('Content-Type');
                                   $this->_raw_cookies  = $r->getResponseCookies();
                                   $this->_cookies      = array();
                                   foreach ($this->_raw_cookies as $cookie) {
                                           $this->_cookies[$cookie['name']] = $cookie['value'];
                                   }
                                 break;                                  break;
                         }                          }
                 }                  }
Line 278  class HTML_Content
Line 287  class HTML_Content
                 return $this->_new_url;                  return $this->_new_url;
         }          }
   
           function getCookies()
           {
                   return $this->_cookies;
           }
   
           function getRawCookies()
           {
                   return $this->_raw_cookies;
           }
   
         function getHTML()          function getHTML()
         {          {
                 return '<!DOCTYPE '.$this->_data['doctype'].">\n"                  return '<!DOCTYPE '.$this->_data['doctype'].">\n"

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top