2020-03-26 18:05:45 +00:00
# PostBody Object
2021-04-13 19:35:27 +00:00
* `data` ([UploadRawData](upload-raw-data.md) | [UploadFile ](upload-file.md ))[] - The post data to be sent to the
2020-03-26 18:05:45 +00:00
new window.
2021-11-16 04:13:18 +00:00
* `contentType` string - The `content-type` header used for the data. One of
2020-03-26 18:05:45 +00:00
`application/x-www-form-urlencoded` or `multipart/form-data` . Corresponds to
the `enctype` attribute of the submitted HTML form.
2021-11-16 04:13:18 +00:00
* `boundary` string (optional) - The boundary used to separate multiple parts of
2020-03-26 18:05:45 +00:00
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:
```html
< form
target="_blank"
method="POST"
enctype="application/x-www-form-urlencoded"
action="https://postman-echo.com/post"
>
< input type = "text" name = "--theKey" >
< input type = "submit" >
< / form >
```