This structure is used by the GetFormProperties and
SetFormProperties methods to return and modify the properties
of the specified form.
typedef struct _HTTPFORMPROPERTIES
{
UINT nFormMethod;
UINT nFormType;
LPCTSTR lpszFormAction;
DWORD dwReserved1;
DWORD dwReserved2;
} HTTPFORMPROPERTIES, *LPHTTPFORMPROPERTIES;
Members
- nFormMethod
- An unsigned integer value which specifies how the form data
will be submitted to the server. It may be one of the following
values:
| Value |
Description |
| HTTP_METHOD_GET |
The form data should be submitted using the GET command.
This method should be used when the amount of form data is
relatively small. If the total amount of form data exceeds 2048
bytes, it is recommended that the POST method be used
instead. |
| HTTP_METHOD_POST |
The form data should be submitted using the POST command.
This is the preferred method of submitting larger amounts of
form data. If the total amount of form data exceeds 2048 bytes,
it is recommended that the POST method be used. |
- nFormType
- An unsigned integer value which specifies the type of form and
how the data will be encoded when it is submitted to the server. It
may be one of the following values:
| Value |
Description |
| HTTP_FORM_ENCODED |
The form data should be submitted as URL encoded values.
This is typically used when the GET method is used to submit
the data to the server. |
| HTTP_FORM_MULTIPART |
The form data should be submitted as multipart form data.
This is typically used when the POST method is used to submit a
file to the server. Note that the script must understand how to
process multipart form data if this form type is
specified. |
- lpszFormAction
- A null-terminated string which specifies the name
of the resource that the form data will be submitted to. Typically
this is the name of a script that is executed on the server.
- dwReserved1
- A reserved structure member.
- dwReserved2
- A reserved structure member.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Unicode: Implemented as Unicode and ANSI versions
See Also
|