我使用以下jquery代码在我的localhost上测试Readability API:
$.getJSON("https://www.readability.com/api/content/v1/parser?url=" + encodeURIComponent(url), function( data ){
log(data);
});
带有以下响应标头:
HTTP/1.1 200 OK
Content-Encoding: gzip
Content-Type: application/json; charset=utf-8
Date: Wed, 18 Dec 2013 10:00:15 GMT
P3P: CP='Legacy Only. Go to https://readability.com/about/terms/ for full terms.'
Server: nginx/1.4.3
Vary: Accept-Encoding, Authorization, Cookie
Content-Length: 2601
Connection: keep-alive
然而,我得到了空洞的回应。知道出了什么问题吗?感谢。