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.
这只是一个幼稚的问题,但我通过 putty 命令行坚持 HTTP POST 请求。执行初始请求后:
~$ POST <url:port/directory> Please enter content (application/x-www-form-urlencoded) to be POSTed: ...(content posted there)
我没有发送命令的选项,因为唯一有效的键盘序列是 CTRL-Z,它会停止程序,而不是发送命令。END-OF-FILE 还有其他交互吗?
CTRL-D 将模拟 EOF。您还可以通过管道进入 POST,这可能会使测试变得更容易,例如:
cat ~/my-json-file.json | POST <url:port/directory>