You are here: Web Services > Consuming Web Services > Creating Multiple Part (Multipart) Body

Creating Multiple Part (Multipart) Body

You can combine two or more contents with different types (e.g. JSON & texts) in the same request body. When you do this, the request's Content-Type is set to multipart/form-data. To create a multipart body and add a content to a multipart body, you simply need to invoke one of these Add… methods more than once:

Refer to the limitations of using AddFile on IBM i.

Note that you can't use AddUrlEncodedFormValue together with the other Addxxxxxxx methods.

Next: Reading the Response