Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
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?
Tagged:
0