Important: The information in this document is obsolete and should not be used for new development.
SetContentType
Sets the content type for a form request.
void SetContentType (in char* contentType);
contentType
- A pointer to a buffer that contains the content type.
DISCUSSION
This method sets the content type for a form request. The content type corresponds to the form'sENCTYPE
attribute; this attribute specifies the format of the submitted data in case the protocol does not impose a format itself. The content type specifies the encoding of the form body.For HTML forms to be processed using the
POST
method, the content type should be the MIME type of the form body. The default content type is"application/x-www-form-urlencoded"
.The
ENCTYPE
attribute and thePOST
method are defined by the HTML 2.0 specification.If you subclass
CyberFormExtension
, you must override this method. Your override must not call its inherited method; that is, your override method must implement this method's functionality completely.SEE ALSO
TheSetBody
method (page 223).
TheSetMethod
method (page 225).