The HTTPPart class / com.HTTPPart methods |
Setter to handle HTTP multipart headers.
setHeader( name STRING, value STRING)
Setter to handle HTTP multipart headers.
For instance, when you send a multipart image, you should specify the image mime type with this header method. If the image is a png, you have to do part.setHeader("Content-Type","image/png"), which lets the peer know the format of the attached file it has to process.
CALL req.setHeader("MyClientHeader","Hello")