您只需要打开一个套接字即可
"localhost", 8080,然后发出
GET scrabServ/connect命令。您无法打开特定URL的套接字。
要与Servlet通信,您可以通过请求参数来实现,基本上是发出GET命令,例如:http
:
//www.jmarshall.com/easy/http/http_footnotes.html#getsubmit
Maybe you should use
URLConnection
instead. If you detail what exactly you want to do, maybe I can have a better
idea of how to help you, maybe a HTTP server is not even needed for what you
want to do.



