On 16/10/2014 6:35 AM, Dave Day wrote:
The standard port for a HTTP server to listen on is 80. So lets say I
wanted to have my own address space listen on another port, and I
wanted to have some javascript running on my desktop use the
websockets api to establish a connection with my address space. The
doc I've been reading says the URI is preceded with "WS:" , not
"HTTP:", but the rest of it looks to be the same.
I would proxy to the websocket server through Apache or whatever web
server is running on port 80. BTW, better to use wss: which is secure.
Kind of the websocket version of https:
Is it a big deal from a security standpoint to open up a firewall for
this type of a connection? The z/OS address space listening on the
port will process and return data specific to the application running
on the desktop, and will discard anything that isn't formatted
according to its own internal data formats. Will probably pass JSON
buffers back and forth.
I'm exploring this as an alternative to implementing a browser to
HTTP server. If I use that, I've got to write the CGI program,
connect to the same address space, get the data, format the JSON
buffer, then write the new web page back to the HTTP server, which
then eventually gets back to the browser on the desktop.
Seems like the websockets approach is a whole lot cleaner, and
more efficient.
Websockets are great. If you want to develop modern web apps in
JavaScript they're a must have.
Has anyone been down this path? Would there be security issues
with this approach?
--Dave
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN