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.
In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).
CALL req.setHeader("MyClientHeader","Hello")