跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • mac os 下的 curl 问题求指教
未分類
14 7 月 2020

mac os 下的 curl 问题求指教

mac os 下的 curl 问题求指教

資深大佬 : xxxsr 12

在 mac 下用终端 curl www.baidu.com 一直报错误
curl: (7) Couldn’t connect to server, 但是如果加上 sudo 给权限却可以正常运行,不知有没有大佬遇到过这种情况,求指教!!!

大佬有話說 (3)

  • 資深大佬 : goodryb

    $whereis curl
    /usr/bin/curl

    $curl www.baidu.com
    <!DOCTYPE html>
    <!–STATUS OK–><html> <head><meta http-equiv=content-type content=text/html;charset=utf-8><meta http-equiv=X-UA-Compatible content=IE=Edge><meta content=always name=referrer><link rel=stylesheet type=text/css href=http://s1.bdstatic.com/r/www/cache/bdorz/baidu.min.css><title>百度一下,你就知道</title></head> <body link=#0000cc> <div id=wrapper> <div id=head> <div class=head_wrapper> <div class=s……

    并未复现同样的情况

  • 資深大佬 : goodryb

    $whereis curl
    /usr/bin/curl

    $curl www.baidu.com
    <!DOCTYPE html>
    <!–STATUS OK–><html> <head><meta http-equiv=content-type content=text/html;charset=utf-8><meta http-equiv=X-UA-Compatible content=IE=Edge><meta content=always name=referrer><link rel=stylesheet type=text/css href=http://s1.bdstatic.com/r/www/cache/bdorz/baidu.min.css><title>百度一下,你就知道</title></head> <body link=#0000cc> <div id=wrapper> <div id=head> <div class=head_wrapper> <div class=s……

    并未复现同样的情况

  • 資深大佬 : lxk11153

    > type curl
    curl is /usr/bin/curl

    > curl -q -I www.baidu.com/
    HTTP/1.1 200 OK
    Accept-Ranges: bytes
    Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
    Connection: keep-alive
    Content-Length: 277
    Content-Type: text/html
    Date: Wed, 22 Jul 2020 06:29:26 GMT
    Etag: “575e1f60-115”
    Last-Modified: Mon, 13 Jun 2016 02:50:08 GMT
    Pragma: no-cache
    Server: bfe/1.0.8.18

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具