Created
May 11, 2012 08:53
-
-
Save firedfox/2658495 to your computer and use it in GitHub Desktop.
another case for "phantomjs --web-security=no"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var xhttp=new XMLHttpRequest(); | |
xhttp.open("GET","http://localhost:8888/start",false); | |
xhttp.send(); | |
console.log(xhttp.responseText); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var page = require('webpage').create(); | |
page.onConsoleMessage = function(msg) { console.log(msg); }; | |
page.onLoadFinished = phantom.exit; | |
page.open("http://localhost:8888/config.html"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment