Skip to content

PHONK 1.3.3pre

Pre-release
Pre-release
Compare
Choose a tag to compare
@victordiaz victordiaz released this 24 Dec 02:12

This Pre-release version includes a new option to upload a generic body in httpRequest POST method as follows
Related issue #94

ui.addTitle(app.name)

network.httpRequest({
  method: 'POST',
  url: 'https://postman-echo.com/post',
  body: {
    type: 'application/json',
    data: JSON.stringify({field: "value", anotherfield: 12345})
  }
}).onResponse(function (e) {
  console.log(e.status, e.response)
})