Discussions
Can't post request body with http.post
const headers = { "Content-Type: application/json", "accept-encoding": "*", }
const params = { opcode: "500", mrd_path: "http:/dummy/sample.mrd", mrd_param: "/rfn [http://dummy/sample.txt]", export_type: `xlsx`, protocol: `file`, }
http.post({ body: params, url: "http://dummy", headers: headers, })
Here is my script that met a problem.
It tried to post a request to download a file from the external server.
The post request surely succeeded in itself.
But from the server side, logs show that the request body parameters were nothing.
Are there any wrong points in my script?