:SetEncodingType()
Class
Syntax
:SetEncodingType( nEncodingType ) -> lSuccess
Parameters
|
|
nEncodingType |
Numeric. See Constants table below |
|
|
|
Default Encoding to HTTP_CONTENT_ENCODING_NONE (0) |
Return
Logical indicating Success.
Returns .T. if the operation succeeds, otherwise returns .F.
Description
Specifies the Encoding-Type for subsequent HTTP Requests.
Currently-supported values are:
|
|
Value |
Constant |
Description |
|
|
0 |
HTTP_CONTENT_ENCODING_NONE |
No encoding will be applied to the content of a request, and no Content-Type header will be generated. |
|
|
1 |
HTTP_CONTENT_ENCODING_URL |
URL encoding will be applied to the content of a request, and a Content-Type header will be generated with the value "application/x-www-form-urlencoded" |
|
|
2 |
HTTP_CONTENT_ENCODING_XML |
URL encoding will be applied to the content of a request, EXCEPT that spaces will not be replaced by '+'. This encoding type is intended for use with XML parsers that do not recognize '+' as a space. A Content-Type header will be generated with the value "application/x-www-form-urlencoded". |
See Also
:GetEncodingType(), :SetRequestHeader(), :SendRequest(), :SubmitQuery()