title: Crawling Ajax.request url directly ... permission error
body: <p>I need to crawl a web board, which uses ajax for dynamic update/hide/show of comments without reloading the corresponding post.
  I am blocked by this comment area.</p>
  
  <p>In Ajax.request, url is specified with a path without host name like this :</p>
  
  <pre><code>new Ajax(**'/bbs/comment_db/load.php'**, {
      update       : $('comment_result'), 
      evalScripts  : true, 
      method       : 'post', 
      data         : 'id=work_gallery&amp;no=i7dg&amp;sno='+npage+'&amp;spl='+splno+'&amp;mno='+cmx+'&amp;ksearch='+$('ksearch').value,
      onComplete   : function() {
          $('cmt_spinner').setStyle('display','none');  
          try { 
              $('cpn'+npage).setStyle('fontWeight','bold'); 
              $('cpf'+npage).setStyle('fontWeight','bold');
          } catch(err) {} 
      }
  }).request();
  </code></pre>
  
  <p>If I try to access the url with the full host name then 
  I just got the message: "Permission Error" :</p>
  
  <pre><code>new Ajax(**'http://host.name.com/bbs/comment_db/load.php'**, {
      update      : $('comment_result'), 
      evalScripts : true, 
      method      : 'post', 
      data        : 'id=work_gallery&amp;no=i7dg&amp;sno='+npage+'&amp;spl='+splno+'&amp;mno='+cmx+'&amp;ksearch='+$('ksearch').value,
      onComplete  : function() {
          $('cmt_spinner').setStyle('display','none');  
          try { 
              $('cpn'+npage).setStyle('fontWeight','bold'); 
              $('cpf'+npage).setStyle('fontWeight','bold');
          } catch(err) {} 
      }
  }).request();
  </code></pre>
  
  <p>will result in the same error.</p>
  
  <p>This is the same even when I call the actual php url in the web browser like this:
  <a href="http://host.name.com/bbs/comment_db/load.php" rel="nofollow noreferrer">http://host.name.com/bbs/comment_db/load.php</a>?'id=work_gallery&amp;..'</p>
  
  <p>I guess that the php module is restricted to be called by an url in the same host. </p>
  
  <p>Any idea for crawling this data ?</p>
  
  <p>Thanks in advance.</p>
  
  <p>-- Shin </p>