Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curl / wget / httpie #73

Open
magicdawn opened this issue May 8, 2016 · 3 comments
Open

curl / wget / httpie #73

magicdawn opened this issue May 8, 2016 · 3 comments
Labels

Comments

@magicdawn
Copy link
Owner

magicdawn commented May 8, 2016

Something on curl / wget / httpie

@magicdawn
Copy link
Owner Author

magicdawn commented May 8, 2016

curl options

flags explanation examples
-H / --header line 指定 header -H "Content-Type: text/plain"
-I / --head 使用 HEAD 方法获取文档信息 ...
-x / --proxy 使用代理 curl -x http://localhost:10086 http://www.baidu.com
-X / --request HTTP Method / COMMAND in curl ...
-d / --data HTTP POST data ...
--data-raw DATA HTTP POST data, '@' allowed (H) ...
--data-ascii DATA HTTP POST ASCII data (H) ...
--data-binary DATA HTTP POST binary data (H) ...
--data-urlencode DATA HTTP POST data url encoded (H)
-F "field=@filename" multipart/form-data 的数据, field内容是一个文件, 于是使用 @文件名 表示

@magicdawn magicdawn changed the title cUrl curl / wget / httpie Jul 4, 2016
@magicdawn
Copy link
Owner Author

wget

options explaination example
-q quiet ...
`` ... ...

@magicdawn
Copy link
Owner Author

magicdawn commented Jun 6, 2019

http version

https://ec.haxx.se/http-versions.html

强制使用 1.1

--http1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant