Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Cyberdog Programmer's Kit / Part 3 - Cyberdog Reference
Chapter 7 - Classes and Methods / CyberFormExtension


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's ENCTYPE 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 the POST 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
The SetBody method (page 223).
The SetMethod method (page 225).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996