zoukankan      html  css  js  c++  java
  • Linux客户端curl *访问测试

    http的访问测试

    [root@localhost ~]# curl  -I --proxy 192.168.10.10:80 www.baidu.com
    HTTP/1.1 200 OK
    Server: nginx/1.12.1
    Date: Mon, 11 Jun 2018 15:37:47 GMT
    Content-Type: text/html
    Content-Length: 612
    Last-Modified: Thu, 31 May 2018 09:28:16 GMT
    Connection: keep-alive
    ETag: "5b0fc030-264"
    Accept-Ranges: bytes
    https的访问测试
    [root@localhost ~]# curl  -I --proxy 192.168.10.10:443 www.baidu.com
    HTTP/1.1 200 OK
    Server: nginx/1.12.1
    Date: Mon, 11 Jun 2018 15:38:07 GMT
    Content-Type: text/html
    Content-Length: 277
    Connection: keep-alive
    Accept-Ranges: bytes
    Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
    Etag: "575e1f5c-115"
    Last-Modified: Mon, 13 Jun 2016 02:50:04 GMT
    Pragma: no-cache
    5、设置Linux客户端全局代理
    [root@localhost ~]# vim /etc/profile
    export http_proxy='192.168.10.10:80'
    export http_proxy='192.168.10.10:443'
    export ftp_proxy='192.168.10.10:80'
    [root@localhost ~]# source /etc/profile
    [root@localhost ~]# curl -I www.baidu.com:80
    HTTP/1.1 200 OK
    Server: nginx/1.12.1
    Date: Mon, 11 Jun 2018 16:10:18 GMT
    Content-Type: text/html
    Content-Length: 277
    Connection: keep-alive
    Accept-Ranges: bytes
    Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
    Etag: "575e1f5c-115"
    Last-Modified: Mon, 13 Jun 2016 02:50:04 GMT
    Pragma: no-cache
    [root@localhost ~]# curl -I www.baidu.com:443
    HTTP/1.1 200 OK
    Server: nginx/1.12.1
    Date: Mon, 11 Jun 2018 16:10:27 GMT
    Content-Type: text/html
    Content-Length: 277
    Connection: keep-alive
    Accept-Ranges: bytes
    Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
    Etag: "575e1f59-115"
    Last-Modified: Mon, 13 Jun 2016 02:50:01 GMT
    Pragma: no-cache
  • 相关阅读:
    SQL Server 分页SQL
    element-ui 表格可编辑添加删除
    vue+ element 动态换肤
    与大家分享学习微信小程序开发的一些心得
    Android开发利器之Data Binding Compiler V2 —— 搭建Android MVVM完全体的基础
    Python 内编写类的各种技巧和方法
    sqlmap-注入方法大全
    kali安装中文输入法完美解决
    kali渗透测试
    parrot-linux,kali-linux,安装输入法
  • 原文地址:https://www.cnblogs.com/weifeng1463/p/13201789.html
Copyright © 2011-2022 走看看