curl -x 127.0.0.1:80

curl -x ip:80 +网址 就相当于在本地hosts文件指定一个域名,具有优先访问权.(curl -x 127.0.0.1:80这个方法适用于生产环境的服务器来测试自己做为代理商访问是否正常) 对于用户来说 -x 后面跟的是 proxy服务器.

也可以通过代理IP 获取本地不可达的信息
curl -x 82.146.147.112:80 www.google.com -I 通过代理访问
curl -x 82.146.147.112:80 -o aaa(指定的文件名) www.google.com -I 将通过代理将信息下载到本地

时间: 2024-08-09 05:03:21

curl -x 127.0.0.1:80的相关文章

我遇到的错误curl: (7) Failed to connect to 127.0.0.1 port 1086: Connection refused

今天我用curl命令,无论如何都是出现: curl: (7) Failed to connect to 127.0.0.1 port 1086: Connection refused 找了很久,不知道是什么问题,后来发现curl有一个配置文件: p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff } span.s1 { } ~/.curlrc 里

curl: (7) Failed to connect to 127.0.0.1 port 1086: Connection refused

今天我用curl命令,无论如何都是出现: 找了很久,不知道是什么问题,后来发现curl有一个配置文件: p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff } span.s1 { } ~/.curlrc 里面的内容是: socks5 = "127.0.0.1:1086" 注释掉就好了. p.p1 { margin: 0.0px 0.0p

Cobbler安装Linux系统时报错 curl:(7)Failed connect to 10.0.0.201:80;Connection refused

问题原因: 其他涉及到http服务的端口全部都改成了81端口.只有 /etc/cobbler/settings 这里没有改. [[email protected]01 ~/]#grep -E "port: 81|server: 10" /etc/cobbler/settings http_port: 80 next_server: 10.0.0.201 server: 10.0.0.201 把 http_port: 80 改成81 再重启cobbler. cobbler sync就可以

linux下apache启动问题(dummy-host.example.com does not exist, Could not..127.0.0.1 for ServerName)

一.Apache常见的启动错误及解决方法. 1.在配置虚拟主机时apache启动错误解决办法: Warning: DocumentRoot [/application/apache2.2.27/docs/dummy-host.example.com] does not exist 其实出现这个错误的主要原因报错已近很明显了,是你的httpd-vhosts.conf中多了一个如下配置: <VirtualHost *:80>    ServerAdmin [email protected]   

http://localhost/ 或 http://127.0.0.1/ 报错:HTTP 404 的解决办法

一些初次接触使用 Eclipse 工具来开发 JAVA Web 工程的开发人员,可能会对 Eclipse 和 Tomcat 的绑定产生一个疑惑. 那就是 在修改了 Tomcat 的8080端口为80后,返回到 Tomcat 安装目录的子目录 bin 下,找到并双击 startup.bat,这时的 Tomcat 在黑窗口中正常启动.然后去打开本地浏览器在地址栏输入 http://localhost/ 或 http://127.0.0.1/ 也能够正常跳转到 Tomcat 的本地管理首页. 但在把本

Linux的netstat查看端口是否开放见解(0.0.0.0与127.0.0.1的区别)

linux运维都需要对端口开放查看  netstat 就是对端口信息的查看 # netstat -nltp p 查看端口挂的程序 [[email protected] ~]# netstat -nltp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:80 0.0.0.0:* LIS

apache2.2不能启动 :adress 0.0.0.0:80

我的个人网站:www.shichengwu.com AppServ安装时,host设为127.0.0.1,端口为80.安装完毕后,dos闪屏后消失,打开AppServ文件夹的apache_start有如图提示: dos窗口已经显示端口冲突,即电脑里80端口已被占用.此时我们找到AppServ\Apache2.2\conf下的http.confighttpd.conf  将Listen 80 改为Listen 88即可.

工作经验 部署阿帕奇的时候出现 Starting httpd: httpd: apr_sockaddr_info_get() failed for server1 httpd: Could not reliably determine the server&#39;s fully qualified domain name, using 127.0.0.1 for ServerName

service httpd restart Starting httpd: httpd: apr_sockaddr_info_get() failed for server1 httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName 出现这种原因是因为  httpd.config  的 配置文件出现错 应该把 ServerName  这行

【转】关于127.0.0.1地址的疑惑

问: 127.0.0.1是回送地址主要用于网络软件测试以及本地机进程间通信,无论什么程序,一旦使用回送地址发送数据,协议软件立即返回之,不进行任何网络传输.1.这个本地的127.0.0.1:1194与外部的 127.0.0.1:8800代表什么意思?2. 本地地址0.0.0.0:135 与 外部地址0.0.0.0:0代表什么意思?3.有些软件需要吧IE浏览器的代理服务器设置为127.0.0.1:8800代表什么意思? 答: 首先,你图中得出的检测结果是通过,nbtstat命令得出的,nbtsta