curl Failed to connect to localhost port 80

前端 未结 4 2099
醉梦人生
醉梦人生 2020-12-13 04:36

My hosts file maps 127.0.0.1 to localhost.

$ curl -I \'localhost\'
curl: (7) Failed to connect to localhost port 80: Connection re         


        
4条回答
  •  误落风尘
    2020-12-13 05:28

    I also had problem with refused connection on port 80. I didn't use localhost.

    curl --data-binary "@/textfile.txt" "http://www.myserver.com/123.php"
    

    Problem was that I had umlauts äåö in my textfile.txt.

提交回复
热议问题