com.HTTPPart.CreateFromString

Creates a new HTTPPart object based on given string.

Syntax

CreateFromString(
   s STRING)
  RETURNING part-object com.HTTPPart
  1. s is a string

Usage

Creates a new HTTPPart object based on given string. To be used via the addPart() method.

Defaults HTTP multipart headers:
  • Content-Type: text/plain
  • Content-Transfer-Encoding: 8bits

Notice that the string will be converted during request sending into ISO-8859-1 by default, unless a different charset has been set via setHeader(“Content-Type”,”text/plain; charset=UTF-8”) for instance.