What is the expected output of 'curl http://github.com'?

♀尐吖头ヾ 提交于 2019-12-13 00:53:26

问题


I recently installed Homebrew and ran brew doctor. It looks like everything is OK, but I get what appears to be a very common message:

Warning: You have a curlrc flie
If you have trouble downloading packages with Homebrew, then maybe this is the problem? If the following command doesn't work, then try removing your curlrc: 
curl http://github.com

When I run it nothing happens:

me at my-computer-name in ~
    $ curl http://github.com
me at my-computer-name in ~

How do I remove my curlrc file, and what are the effects?


回答1:


The .curlrc file contains default command-line arguments (ie, they're included in your command without having to re type them) - so it's typically used to hold proxy information, etc. it's just plain text.

It's probably in your home directory, and/or $CURL_HOME . Note that it's .curlrc , not curlrc , so you'll need to use 'ls -a' to see it. Then it can be modified/renamed/deleted like any other file.

Can't say what the effects are of removing it - depends what's in it, but looks like it can't be worse than the nothing you're getting at the moment. Even so, to be safe, try renaming it rather than deleting it first.



来源:https://stackoverflow.com/questions/25099889/what-is-the-expected-output-of-curl-http-github-com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!