PostBody Object

  • data Array<PostData> - The post data to be sent to the new window.
  • contentType String - The content-type header used for the data. One of application/x-www-form-urlencoded or multipart/form-data. Corresponds to the enctype attribute of the submitted HTML form.
  • boundary String (optional) - The boundary used to separate multiple parts of the message. Only valid when contentType is multipart/form-data.

Note that keys starting with -- are not currently supported. For example, this will errantly submit as multipart/form-data when nativeWindowOpen is set to false in webPreferences:

  1. <form
  2. target="_blank"
  3. method="POST"
  4. enctype="application/x-www-form-urlencoded"
  5. action="https://postman-echo.com/post"
  6. >
  7. <input type="text" name="--theKey">
  8. <input type="submit">
  9. </form>