Final
This commit is contained in:
+1
-2
@@ -11,8 +11,7 @@
|
|||||||
let nocache = "&nocache=" + Math.random() * 1000000
|
let nocache = "&nocache=" + Math.random() * 1000000
|
||||||
let XHR = new XMLHttpRequest()
|
let XHR = new XMLHttpRequest()
|
||||||
|
|
||||||
XHR.open("POST", "http://127.0.0.1/18/urlget.php?url=news.com" + nocache, true)
|
XHR.open("GET", "http://127.0.0.1/18/urlget.php?url=news.com" + nocache, true)
|
||||||
XHR.setRequestHeader("Content-type", "application/x-www-form-urlencoded")
|
|
||||||
XHR.send()
|
XHR.send()
|
||||||
|
|
||||||
XHR.onreadystatechange = function()
|
XHR.onreadystatechange = function()
|
||||||
|
|||||||
+1
-2
@@ -13,8 +13,7 @@
|
|||||||
let url = "rss.news.yahoo.com/rss/topstories"
|
let url = "rss.news.yahoo.com/rss/topstories"
|
||||||
let XHR = new XMLHttpRequest()
|
let XHR = new XMLHttpRequest()
|
||||||
|
|
||||||
XHR.open("POST", "http://127.0.0.1/18/xmlget.php?url=" + url + nocache, true)
|
XHR.open("GET", "http://127.0.0.1/18/xmlget.php?url=" + url + nocache, true)
|
||||||
XHR.setRequestHeader("Content-type", "application/x-www-form-urlencoded")
|
|
||||||
XHR.send()
|
XHR.send()
|
||||||
|
|
||||||
XHR.onreadystatechange = function()
|
XHR.onreadystatechange = function()
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user