我想仅在选定的网络接口(interface)上调用剩余 Web 服务的 HTTP 请求。
对此的任何建议将不胜感激。
最佳答案
我发现你可以像这样在 url 中定义网络接口(interface):
192.168.1.122%eth0
它可以在 Ubuntu 中运行,我希望它也可以在不同的系统中运行。
关于java - 通过一个网络接口(interface)进行 Http 请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4786674/