|
-
how to get header information of a website???
var req = new XMLHttpRequest();
req.open('GET', 'http://localhost/gp/index.php', false);
req.send(null);
if(req.status == 200) {
alert(req.getResponseHeader('Content-type'));
alert(req.getAllResponseHeaders());
this code is working fine and giving the HEADER information;but if i change the URL and put http://www.google.com, then it is not working.........plzzzz i need help.
Similar Threads
-
By tx12345 in forum VB Classic
Replies: 2
Last Post: 03-08-2007, 08:57 PM
-
By zdrsoft in forum Security
Replies: 4
Last Post: 01-11-2007, 07:19 AM
-
By john moyers M.D., PhD in forum Web
Replies: 0
Last Post: 06-04-2002, 09:12 AM
-
By Edwin Gomez in forum Talk to the Editors
Replies: 0
Last Post: 04-26-2002, 12:08 PM
-
Replies: 3
Last Post: 03-07-2001, 10:22 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks