The HTTPPart class / com.HTTPPart methods |
Creates a new HTTPPart object based on given string.
Creates a new HTTPPart object based on given string. To be used via the addPart() method.
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.