通过一个网络接口的Http请求 [英] Http request via one network interface
本文介绍了通过一个网络接口的Http请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只想在选定的网络接口上调用HTTP请求以获取其余Web服务.
I would like to call HTTP request for rest webservice only on selected network interface.
任何对此的建议将不胜感激.
Any advice on this would be much appreciated.
推荐答案
我发现您可以在url中定义网络接口,如下所示:
I found out that you can define network interface in url like this :
192.168.1.122%eth0
它可以在Ubuntu中运行,我希望它也可以在不同的系统中运行.
It's working in Ubuntu and I hope that it works in different systems too.
这篇关于通过一个网络接口的Http请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文