我試圖向接受JSON的端點發送POST請求,但它不起作用。我是否必須發送任何特定參數才能讓網絡知道它被編碼爲JSON? 下面是簡單的要求我到目前爲止: var request = require('request')
var cookie = '**Here the cookie copied from the Network tab from the Chrome Dev Tools Bar
有誰知道如何將HTTP正文參數添加到請求中?我試着像... telnet xxxx.com 80
Trying 128.x.xxx.45...
Connected to xxxx.com.
Escape character is '^]'.
POST /webapps/methods/check-post HTTP/1.1
Host: xxxx.com
Content-Type: ap