访问 HTMLUNIT 中的套接字数据
在普通的 Java Socket 类中,您可以使用 public int getLocalPort() 方法来查找源端口是什么。有谁知道如何使用 HTMLUNIT 访问此信息?
In and normal Java Socket class you have the method public int getLocalPort() to find out what your source port is. Does anyone know how to access this information with HTMLUNIT?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
给出正在访问的 URL 的端口号(如果您正在查找该端口号)。
gives the port number of the URL being visited if that is what you are looking for.