forked from ariya/phantomjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Inter Process Communication
TheHippo edited this page Apr 2, 2013
·
7 revisions
There are multiple ways to handle inter-process communication between PhantomJS and other processes.
- files
- sockets
- named pipes
-
outgoing HTTP requests (to other processes/services)
- GET/POST data to a server endpoint
- GET/POST data to a server endpoint, parse resulting JSON/XML/HTML/etc.
-
incoming HTTP requests (server)
-
route PhantomJS traffic through an HTTPS proxy like mitmproxy/libmproxy
- hixie-76 websockets only
- PhantomJS 2.x will eventually get a WebKit upgrade that has RFC 6455 websockets.
See the stdin-stdout-stderr.js example script for details.