Diff for /parser3/tests/097.html between versions 1.4 and 1.7

version 1.4, 2007/03/01 10:33:58 version 1.7, 2017/05/19 16:49:53
Line 1 Line 1
 $file[^file::load[binary;http://www.parser.ru/none/;  @main[]
   $response:charset[UTF-8]
   $request:charset[UTF-8]
   
   $file[^file::load[binary;http://www.parser.ru/_/tests/none/;
         $.headers[          $.headers[
                 $.USER-AGENT[paf]                  $.USER-AGENT[paf]
         ]          ]
           $.timeout(10)
         $.any-status(1)          $.any-status(1)
 ]]  ]]
 #server: $file.SERVER<br>  #server: $file.SERVER<br>
 $file.status  $file.status
 <hr />  
 #<pre>$file.text</pre>  #<pre>$file.text</pre>
   
   
 $file[^file::load[binary;http://www.parser.ru/xmlview.xsl;  <hr />
         $.timeout(10)  ^try{
         $.any-status(1)          $file[^file::load[binary;http://www.parser.ru/xmlview.xsl;
 ]]                  $.timeout(10)
                   $.any-status(1)
           ]]
           ^try{
                   $xdoc[^xdoc::create[$file]]
                   xdoc from file created successfully (documentElement: $xdoc.documentElement.nodeName)
           }{
                   can't create xdoc from file.
                   $exception.handled(1)
           }
   }{
           can't load remote file.
           $exception.handled(1)
   }
   
   <hr />
   ^try{
           $xdoc[^xdoc::load[http://www.parser.ru/xmlview.xsl]]
           remote xdoc loaded successfully (documentElement: $xdoc.documentElement.nodeName)
   }{
           can't load remote xdoc.
           $exception.handled(1)
   }
   
   
   <hr />
   ^try{
           $xdoc[^xdoc::load[108.xsl]]
           local xdoc loaded successfully (documentElement: $xdoc.documentElement.nodeName)
   }{
           can't load local xdoc.
           $exception.handled(1)
   }
   
   
   <hr />
   Loading remote file in windows-1251:
   ^try{
           $file[^file::load[text;http://www.parser.ru/_/tests/097.html;
                   $.charset[windows-1251]
                   $.timeout(10)
                   $.form[
                           $.charset[windows-1251]
                           $.title[Проверка]
                   ]
           ]]
           <p>$file.text</p>
   }{
           $exception.handled(1)
           can't load remote file. 
   }
   
   
   <hr />
   Loading remote file in UTF-8:
 ^try{  ^try{
         $xdoc[^xdoc::create[$file]]          $file[^file::load[text;http://www.parser.ru/_/tests/097.html;
         xdoc from file created successfully (documentElement: $xdoc.documentElement.nodeName)                  $.timeout(10)
                   $.form[
                           $.charset[UTF-8]
                           $.title[Проверка]
                   ]
           ]]
           <p>$file.text</p>
 }{  }{
         can't create xdoc.  
         $exception.handled(1)          $exception.handled(1)
           can't load remote file. 
 }  }

Removed from v.1.4  
changed lines
  Added in v.1.7


E-mail: