我以为user=user&password=password
会在请求的正文中,但我找不到它。它在哪里?是否-v
显示包括正文的完整请求?谢谢。
$ curl --data "user=user&password=password" -v http://google.com/
* Trying 172.217.3.110...
* TCP_NODELAY set
* Connected to google.com (172.217.3.110) port 80 (#0)
> POST / HTTP/1.1
> Host: google.com
> User-Agent: curl/7.58.0
> Accept: */*
> Content-Length: 27
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 27 out of 27 bytes
< HTTP/1.1 405 Method Not Allowed
< Allow: GET, HEAD
< Date: Wed, 30 Jan 2019 14:01:40 GMT
< Content-Type: text/html; charset=UTF-8
< Server: gws …
Run Code Online (Sandbox Code Playgroud) curl ×1