gpt4 book ai didi

c - 如何在特定界面上使用 cURL

转载 作者:IT王子 更新时间:2023-10-29 00:17:23 24 4
gpt4 key购买 nike

我正在用 c 语言开发一个代码,它通过使用 curl 实用程序简单地通过 FTP 将文件传输到 FTP 服务器上,方法如下 example

现在我要做一件简单的事情,指定 curl 以使用服务器的特定接口(interface) (IP) 进行上传,因为服务器的其他接口(interface)与其他套接字连接相关联。

有什么办法吗?

最佳答案

似乎 curl 支持 --interface 选项

curl --interface eth0 

关于c - 如何在特定界面上使用 cURL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33066407/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com