:SendRequestEx()
Class
Syntax
:SendRequestEx( nRequest, cResource, cParams ) --> cReturn
Parameters
|
|
nRequest |
Request to send to remote server. See table below |
|
|
cResource |
Resource to send Request to. |
|
|
cParams |
Parameters to include in Request |
Return
cReturn
Description
Send a request to the remote server.
The primary difference between :SendRequest() and :SendRequestEx() is the ability to send binary data as the cParams..
The nRequest parameter may be one of the following values:
|
Constant |
Description |
|
HTTP_COMMAND_GET |
Return the contents of the specified resource. This command is recognized by all servers. |
|
HTTP_COMMAND_HEAD |
Return only header information for the specified resource. This command is recognized by servers that support at least version 1.0 of the protocol. |
|
HTTP_COMMAND_POST |
Post data to the specified resource. This command is recognized by servers that support at least version 1.0 of the protocol. |
|
HTTP_COMMAND_PUT |
Create or replace the specified resource on the server. This command is recognized by servers that support at least version 1.0 of the protocol. Not all servers support this command. |
|
HTTP_COMMAND_DELETE |
Delete the specified resource from the server. This command is recognized by servers that support at least version 1.1 of the protocol. Not all servers support this command. |
|
HTTP_COMMAND_OPTIONS |
This method allows the client to determine the options and/or requirements associated with a resource, or the capabilities of a server, without implying a resource action or initiating a resource retrieval. This command is recognized by servers that support at least version 1.1 of the protocol. Not all servers support this command. The results of this command are in the "Allow" response header, and can be read with :GetResponseHeader(). If the resource is "*", the request applies to the server as a whole. |
See Also