zotonic vs phantomjs

84 views
Skip to first unread message

Heiko Irrgang

unread,
Jul 19, 2012, 12:09:18 PM7/19/12
to zotoni...@googlegroups.com
Hi there,

i want to control my zotonic site by script via the headless webkit browser http://phantomjs.org , but zotonic sends a 403 error if i use phantomjs to access a 100% legal and working url.

What does zotonic do, that many many other sites that i tried with phantomjs do not do?

Arjan Scherpenisse

unread,
Jul 19, 2012, 1:24:56 PM7/19/12
to zotoni...@googlegroups.com
That sounds really strange. Which URL are you trying to reach with
phantomjs?

To be sure, you might want to check the traffic that phantomjs generates
with an IP sniffer like wireshark...

Arjan

On 07/19/2012 06:09 PM, Heiko Irrgang wrote:
> Hi there,
>
> i want to control my zotonic site by script via the headless webkit
> browser http://phantomjs.org <http://phantomjs.org%20>, but zotonic

Marc Worrell

unread,
Jul 19, 2012, 4:50:15 PM7/19/12
to zotoni...@googlegroups.com
I just tried:

phantomjs rasterize.js http://zotonic.com/ zt.png

And it worked. Some other Zotonic sites also worked
Maybe you can do a wireshark trace to see what happens?

- Marc

Heiko Irrgang

unread,
Jul 20, 2012, 2:43:24 AM7/20/12
to zotoni...@googlegroups.com
Hi,


On Thursday, July 19, 2012 10:50:15 PM UTC+2, Marc Worrell wrote:
I just tried:

 phantomjs rasterize.js http://zotonic.com/ zt.png

And it worked.  Some other Zotonic sites also worked
Maybe you can do a wireshark trace to see what happens?

well, phantomjs actually worked, the error message is coming from phantomjs javascript engine and is just the same problem i have with every browser, but only noticed seeing it on phantomjs:

Firefox can't establish a connection to the server at ws://local:8000/websocket?z_pageid=eYzVdpgqeAKSk8MMAlK0.
http://local:8000/lib/js/apps/zotonic-1.0~z.widgetmanager~/js/modules/z.inputoverlay~63501373254.js
Line 517

this seems to be with every site i created so far and is not happening on zotonic.com, what could i have made wrong?
Reply all
Reply to author
Forward
0 new messages