You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the original form was seen on the page "www.hotmail.com/when/birth.html", the second page you'll get will become "www.hotmail.com/when/junk.cgi?birthyear=1905&press=OK".
# To make curl look like Internet Explorer 5 on a Windows 2000 box:
curl --user-agent "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" [URL]
# Or why not look like you're using Netscape 4.73 on an old Linux box:
curl --user-agent "Mozilla/4.73 [en] (X11; U; Linux 2.2.15 i686)" [URL]
以下内容为查看官网做的简单翻译,后边内容因没有具体环境测试,说明较少。
curl
官网Using cURL to automate HTTP jobs:
HTTP Scripting
See thr Protocol基本示例
以上命令现实curl通过send和receive获取到的EVERYTHING,保存到当前目录下的bad.txt文件(会自动创建)
如需要添加time,可通过:
默认情况curl的返回会是命令行的stdout,可以使用
-o
或-O
来实现输出:URL
Spec
URL(Uniform Resource Locator)描述如何能在互联网中获取特定资源(how you specify the address of a particular resource on the Internet. ).比如例子:http://www.baidu.com
Fetch a page
GET
POST
HTML forms
GET
If the original form was seen on the page "www.hotmail.com/when/birth.html", the second page you'll get will become "www.hotmail.com/when/junk.cgi?birthyear=1905&press=OK".
POST
File Upload POST
Hidden Fields
页面内已经有了隐藏字段,默认填了内容,可通过以下post:
HTTP upload
PUT
Put a file to a HTTP server with curl:
HTTP Authentication认证
基本认证 Basic Authentication
curl
使用user
andpassword
作为认证其他认证 Other Authentication
通过服务器头部返回,可得知需要的不同认证方法,通过
--ntml,--digest,--negotiate
... 选项认证代理认证 Proxy Authentication
有些HTTP仅允许通过代理进入,可以通过以下方法
More HTTP Headers
Referer
User Agent
设置浏览器user-agent,告诉服务器在使用某种浏览器
Redirects
Cookies
发送一些cookies的基本方法
后续如有更新会在这里:http://onvno.github.io/
The text was updated successfully, but these errors were encountered: