[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #4246 [Website]: Create a JS-based clock-check page to diagnose HS problems



#4246: Create a JS-based clock-check page to diagnose HS problems
-------------------------+--------------------------------------------------
 Reporter:  rransom      |          Owner:          
     Type:  enhancement  |         Status:  assigned
 Priority:  major        |      Milestone:          
Component:  Website      |        Version:          
 Keywords:               |         Parent:          
   Points:               |   Actualpoints:          
-------------------------+--------------------------------------------------

Comment(by mazda):

 Apparently we can read the HTTP headers using java-script, Is that
 sufficient for this check?

 <html>
 <body>

 <script type="text/javascript">

 var d=new Date();
 document.write(d);

 javascript:var req = new XMLHttpRequest();
 req.open('GET', document.location, false);req.send(null);var headers =
 req.getAllResponseHeaders().toLowerCase();
 document.write('<br>');
 document.write(headers);
 </script>

 </body>
 </html>

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4246#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs