I have the following simple casperjs script (I cannot name the actual URL) on a Windows 7 machine:
var casper = require('casper').create({verbose:true,logLevel: "debug"}); casper.start('https://[XXX].de', function() { console.log(this.getCurrentUrl()); }); casper.run();
Output states that it failed - and the current URL is: "about: blank"
[info] [phantom] Starting... [info] [phantom] Running suite: 2 steps [debug] [phantom] opening url: https://[XXX].de, HTTP GET [debug] [phantom] Navigation requested: url=https://[XXX].de, type=Other, lock=true, isMainFrame=true [warning] [phantom] Loading resource failed with status=fail: https://[XXX].de [debug] [phantom] Successfully injected Casper client-side utilities about:blank [info] [phantom] Step 2/2: done in 39205ms. [info] [phantom] Done 2 steps in 39309ms
When you submit a GET request with the Firefox RESTCLient plugin, I get:
Status Code: 200 OK Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Connection: close Content-Type: text/html Date: Tue, 11 Dec 2012 11:09:37 GMT Expires: Thu, 19 Nov 1981 08:52:00 GMT Pragma: no-cache Server: unknown Transfer-Encoding: chunked
My question is:
How can I debug this? Is this a known issue?
source share