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.
我需要使用 Node.js 的Restler发送 HTTP POST 请求。
现在我设置 cookie jar 文件的 curl 请求如下所示:
curl -c '/tmp/mycookie' -d <data> http://myhost:3000/put
并像这样读取cookie:
curl -b '/tmp/mycookie' -X POST http://myhost:3000/put1
如何在请求对象上设置mycookie ?这应该是请求标头吗?