TRACE ! help !

Discussion in 'Песочница' started by stigmatus, 3 Jun 2008.

  1. stigmatus

    stigmatus New Member

    Joined:
    26 Apr 2008
    Messages:
    23
    Likes Received:
    4
    Reputations:
    -20
    создою такои javascript
    PHP:
    <script
    function 
    sendTrace () { 
    var 
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); 
    xmlHttp.open("TRACE""http://mail.ru",false); 
    xmlHttp.send(); 
    xmlDoc=xmlHttp.responseText
    alert(xmlDoc); 

    </script> 
    <INPUT TYPE=BUTTON OnClick="sendTrace();" VALUE="Send Trace Request">
    но при нажатий на кнопку АБЛОМ ! почему !
     
  2. GALIAFF

    GALIAFF Elder - Старейшина

    Joined:
    28 Sep 2007
    Messages:
    45
    Likes Received:
    28
    Reputations:
    5
    ...
     
  3. groundhog

    groundhog Elder - Старейшина

    Joined:
    12 May 2007
    Messages:
    1,159
    Likes Received:
    425
    Reputations:
    180
    Не обязательно TRACE - любой HTTP-метод подвержен такому ограничению в Ajax.
     
  4. +toxa+

    +toxa+ Smack! SMACK!!!

    Joined:
    16 Jan 2005
    Messages:
    1,674
    Likes Received:
    1,029
    Reputations:
    1,228
    Отнюдь)

    http://ejohn.org/blog/cross-site-xmlhttprequest/
    http://jeremiahgrossman.blogspot.com/2008/05/crossdomainxml-invites-cross-site.html
     
    _________________________
  5. stigmatus

    stigmatus New Member

    Joined:
    26 Apr 2008
    Messages:
    23
    Likes Received:
    4
    Reputations:
    -20
    для себя ничего нового не узнал !
     
  6. Scipio

    Scipio Well-Known Member

    Joined:
    2 Nov 2006
    Messages:
    733
    Likes Received:
    544
    Reputations:
    190
    вобщем в целях безопасности именно на метод Trace есть ограничения и в паблике обхода этих ограничений нет, я думаю уже все сказано