diff --git a/18/urlget.html b/18/urlget.html index 8ac0094..3ad9eff 100644 --- a/18/urlget.html +++ b/18/urlget.html @@ -11,8 +11,7 @@ let nocache = "&nocache=" + Math.random() * 1000000 let XHR = new XMLHttpRequest() - XHR.open("POST", "http://127.0.0.1/18/urlget.php?url=news.com" + nocache, true) - XHR.setRequestHeader("Content-type", "application/x-www-form-urlencoded") + XHR.open("GET", "http://127.0.0.1/18/urlget.php?url=news.com" + nocache, true) XHR.send() XHR.onreadystatechange = function() diff --git a/18/xmlget.html b/18/xmlget.html index d3cbf72..e863e3b 100644 --- a/18/xmlget.html +++ b/18/xmlget.html @@ -13,8 +13,7 @@ let url = "rss.news.yahoo.com/rss/topstories" let XHR = new XMLHttpRequest() - XHR.open("POST", "http://127.0.0.1/18/xmlget.php?url=" + url + nocache, true) - XHR.setRequestHeader("Content-type", "application/x-www-form-urlencoded") + XHR.open("GET", "http://127.0.0.1/18/xmlget.php?url=" + url + nocache, true) XHR.send() XHR.onreadystatechange = function() diff --git a/lpmj6examples.zip b/lpmj6examples.zip index ebf2967..4c712d9 100644 Binary files a/lpmj6examples.zip and b/lpmj6examples.zip differ