Skip to content

Instantly share code, notes, and snippets.

@firedfox
Created May 11, 2012 08:53
Show Gist options
  • Save firedfox/2658495 to your computer and use it in GitHub Desktop.
Save firedfox/2658495 to your computer and use it in GitHub Desktop.
another case for "phantomjs --web-security=no"
<script>
var xhttp=new XMLHttpRequest();
xhttp.open("GET","http://localhost:8888/start",false);
xhttp.send();
console.log(xhttp.responseText);
</script>
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