linux - 使用 cURL 执行 HTTP 请求(使用 PROXY)

我有这个代理地址:125.119.175.48:8909

如何使用像 curl http://www.example.com 这样的 cURL 来执行 HTTP 请求,但要指定我的网络的代理地址?

最佳答案

来自man curl:

-x, --proxy <[protocol://][user:password@]proxyhost[:port]>

     Use the specified HTTP proxy. 
     If the port number is not specified, it is assumed at port 1080.

https://stackoverflow.com/questions/9445489/

相关文章:

linux - chmod 777 到一个文件夹和所有内容

python - 如何获取方法参数名称?

python - Python 和 IPython 有什么区别?

linux - 在 Linux 系统上快速创建大文件

python - Python进程使用的总内存?

linux - 如果任何命令返回非零值,则中止 shell 脚本

linux - 如何从 shell 将一个文件 append 到 Linux 中的另一个文件?

python - 从第 2 行读取文件或跳过标题行

python - 我应该在 Python 中使用 "camel case"还是下划线?

linux - 递归查找具有特定扩展名的文件