: |
wget -qO- http://www.oref.org.il/WarningMessages/alerts.json <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" type="text/css" href="http://www.oref.org.il/Style/Shared/960.css" media="screen" /> <link rel="stylesheet" type="text/css" href="http://www.oref.org.il/Style/Shared/layout.css" media="screen" /> </head> <body class="body404"> <div class="container_16" style="text-align:center;"> <img style="width:709px;height:248px;margin-top:200px;clear:both;" src="http://www.oref.org.il/Images/Shared/err_page.png" usemap="#error_page" border="0"/> <map name="error_page"> <area shape="rect" alt="" title="" coords="306,165,416,189" href="http://www.oref.org.il/"/> </map> </div> </body> |
: |
[elcuco@homer ~]$ wget -q -O - http://www.oref.org.il/WarningMessages/Alert/alerts.json?v=1 | hexdump -C
00000000 ff fe |..| 00000002 |
elcuco : | ||
. . |
: |
[{"alertDate":"2015-07-06 12:00:01","title":"ªœ- ¤ ªª ","data":" œ"}] |
: |
[{"alertDate":"2015-07-06 12:00:01","title":"- ","data":" "}] |
gavriel : |
" 1"? . -" 1"? ? |
() : |
, ".
, . : : http://www.oref.org.il/WarningMessages/Alert/alerts.json - 1) "" ( ) JSON-. FF FE BOM. , -HTTP RESPONSE . 2) JSON ( -JSON 5:21 ): { "id" : "1441084909121", "title" : " ", "data" : [ " 218" ] } 3) 1. , : { "id" : "1441094610483", "title" : " ", "data" : [ " 1" ] } 4) , . : { "id" : "1441144848076", "title" : " ", "data" : [ " " ] } 5) 2 : . -CURL -JSON PHP, ICONV UTF-8. . JAVASCRIPT , JSON.PARSE Iterating data ( ). . |
: |
! : ? . , API |
sagi.zvi@gmail.com : |
404 alerts.json ?
304... ... . |
sagi.zvi@gmail.com : |
404 alerts.json ?
304... ... . |
: |
wget -S -qO- http://www.oref.org.il/WarningMessages/Alert/alerts.json | iconv -f UTF16 -t utf-8
HTTP/1.1 200 OK Content-Type: application/json Last-Modified: Wed, 21 Oct 2015 05:39:44 GMT Accept-Ranges: bytes ETag: W/"254d2e3c2bd11:0" Server: XXXXXXXXXXXXXXXXXX X-BY: 1 Content-Length: 2 Cache-Control: max-age=4 Date: Wed, 21 Oct 2015 06:06:57 GMT Connection: keep-alive |
Anonymous : | ||||
transparent proxy 200
|
: |
wget -qO- http://www.oref.org.il/WarningMessages/Alert/alerts.json|hd
00000000 ef bb bf |...| 00000003 |