When values are POSTed to a server they typically require encoding, using either UrlEncoded or Multipart encoding when key value pairs are sent. This flag properly encodes values as they are POSTed. The default behavior is UrlEncoded format which is the same as used by typical HTML forms on HTML pages. Multipart encoding typically is used with binary data and file uploads. XML is also supported, but only for setting the content type - no encoding occurs when setting nHTTPPostMode to 4.
| Value | Description | Content Type |
|---|---|---|
| 1 | Form Url Encoded (standard POST operation) (Default) | application/x-www-form-urlencoded |
| 2 | Multipart forms (file uploads) | multipart/form |
| 4 | Xml | text/xml |
Note that these flag values also set the HTTP request's Content-Type header. The HTTP Content-Type header can also be explicitly set with the cContentType property.