Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 Linux 机器上使用 C 从特定端口创建 HTTP 请求。有,libcurl但我不确定你是否可以指定接口。是否可以 ?
libcurl
非常感谢 :)。
是的。查看选项CURLOPT_INTERFACE和CURLOPT_LOCALPORT.
CURLOPT_INTERFACE
CURLOPT_LOCALPORT