How to get the response of an http website within a string? Whatever it开发者_运维技巧 was an xml, JSON, html ...?
see this http://ajaxpatterns.org/XMLHttpRequest_Call.
you can get the http status code with the status
property on the xhr. You can get the actual response text in the responseText
property.
精彩评论