applet and jar http post help
I am making a plugin for the ever so popular game, Minecraft. I have a webpage with an applet on it, that needs to get data from a jar file. For API purposes, I wanted them to communicate over HTTP POSTS. for example, The webpage is being viewed, so the applet sends a connection post the the jar, to let it know it is in use, the use logs in, so the applet sends the username and password over to the jar and the jar returns back a Boolean. The jar will need to send feeds of text and it needs to know which to send them to.
I hope this is not too complicated. Perhaps if you can simply show me how to send and receive post data, that would be great.
Re: applet and jar http post help
Quote:
Originally Posted by
jobud9
Perhaps if you can simply show me how to send and receive post data, that would be great.
The following article has code snippets and descriptions of how to send http POST requests
Reading from and Writing to a URLConnection (The Java™ Tutorials > Custom Networking > Working with URLs)
Re: applet and jar http post help