Forums Register Login
How to read and write to/from webserver socket?

How do I modify http://pleac.sourceforge.net/pleac_groovy/sockets.html#AEN925 to print out what the browser sends it?

Here is my attempt:

I get this error:

Exception thrown: Address already in use: JVM_Bind

java.net.BindException: Address already in use: JVM_Bind

at ConsoleScript3.run(ConsoleScript3:1)

The error is unrelated to what you're asking--there's something already using that socket.

Perhaps your own app, since it never exits.
If I comment out that one line where I try to read the socket, I basically have the original that works. This leads me to believe my attempt to read is causing the problem.

So, how do I take the original and enhance it to display all the post parameters and the header that the browser is sending it?
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards

This thread has been viewed 2225 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jan 18, 2018 11:22:20.