這是一組可以對網頁的檔頭資料進行分析的工具API, 嗯......或許沒什麼實用價值就是了。 Call Endpoint: http://ha2.tw/rest/webheader/parse.(xml|json) 參數:
成功的XML回傳<!-- calling http://ha2.tw/rest/webheader/parse.xml?url=http%3A%2F%2Fwww.google.com --> <xml> <header> <item> <type>Date</type> <value>Mon, 23 Apr 2012 15:51:37 GMT</value> </item> <item> <type>Expires</type> <value>-1</value> </item> <item> <type>Cache-Control</type> <value>private, max-age=0</value> </item> <item> <type>Content-Type</type> <value>text/html; charset=ISO-8859-1</value> </item> <item> <type>Set-Cookie</type> <value> PREF=ID=dad461d517871eb9:FF=0:TM=1335196297:LM=1335196297:S=s74NVLjpRBf4D4F0; expires=Wed, 23-Apr-2014 15:51:37 GMT; path=/; domain=.google.com </value> </item> <item> <type>Set-Cookie</type> <value> NID=59=FdGd3UymrDG4tsF9o_SH3YrAWGtfFiwg5AQ5uZ7mNKmHtU0EA3FeQjRLb2-FUvIzUEiyvCw1j4V9HU-4rCnXA0w-ir8ZZIEYy7-15oiJHxo1_feejo6vKmF0Mf90Y13i; expires=Tue, 23-Oct-2012 15:51:37 GMT; path=/; domain=.google.com; HttpOnly </value> </item> <item> <type>P3P</type> <value> CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info." </value> </item> <item> <type>Server</type> <value>gws</value> </item> <item> <type>X-XSS-Protection</type> <value>1; mode=block</value> </item> <item> <type>X-Frame-Options</type> <value>SAMEORIGIN</value> </item> <item> <type>Transfer-Encoding</type> <value>chunked</value> </item> </header> </xml> 成功的JSON回傳/** calling http://ha2.tw/rest/webheader/parse.json?url=http%3A%2F%2Fwww.google.com */ {"header":[{"type":"Date","value":" Mon, 23 Apr 2012 15:53:46 GMT"},{"type":"Expires","value":" -1"},{"type":"Cache-Control","value":" private, max-age=0"},{"type":"Content-Type","value":" text\/html; charset=ISO-8859-1"},{"type":"Set-Cookie","value":" PREF=ID=e6f1f7b0ffa3c8e5:FF=0:TM=1335196426:LM=1335196426:S=cdMO5yxF1QOC6hui; expires=Wed, 23-Apr-2014 15:53:46 GMT; path=\/; domain=.google.com"},{"type":"Set-Cookie","value":" NID=59=hr7MX5wHXLJ5MYNMSx7eHvVRwLdSHSQ3Ep-xkkiRvvBxCcokMNpoFl7n9sp9aOirpeqIpeG3PtOPeTbn78fMJJZazBSDO1n3tOHv_laiZilUi8GAByMEKKmdzggGkA0S; expires=Tue, 23-Oct-2012 15:53:46 GMT; path=\/; domain=.google.com; HttpOnly"},{"type":"P3P","value":" CP=\"This is not a P3P policy! See http:\/\/www.google.com\/support\/accounts\/bin\/answer.py?hl=en&answer=151657 for more info.\""},{"type":"Server","value":" gws"},{"type":"X-XSS-Protection","value":" 1; mode=block"},{"type":"X-Frame-Options","value":" SAMEORIGIN"},{"type":"Transfer-Encoding","value":" chunked"}]} |
網頁檔頭分析器API
這是一組可以對網頁的檔頭資料進行分析的工具API, 嗯......或許沒什麼實用價值就是了。 Call Endpoint: http://ha2.tw/rest/webheader/parse.(xml|json) 參數:
|