You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kanzure edited this page Mar 31, 2013
·
13 revisions
There are multiple ways to handle inter-process communication between PhantomJS and other processes.
File I/O
files
sockets
named pipes
HTTP
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
Websockets inside a WebPage context
hixie-76 websockets only
PhantomJS 2.x will eventually get a WebKit upgrade that has RFC 6455 websockets.