Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在向我的网站发送一个发布请求:
curl --data "param1=value1¶m2=value2" http://mysite.com/
但结果是整个html页面(与用户名和密码无关,无论对错)
尝试
`curl -u username:password http://example.com`
登录,或试试这个
curl http://username:password@example.com/?param1=xx¶m2=xx