QueryType
This property sets how the Web object will communicate with the web server. Get, Put and Post are the available options.
Group: Web Object
Syntax: oWeb.QueryType = enValue
Alternate: enValue = oWeb.QueryType
enValue (QueryType) contains three options:
HTTP_GET – it is for obtaining a resource, without changing anything on the server.
HTTP_POST – sends data to a specific URI and expects the resource at that URI to handle the request. The web server at this point can determine what to do with the data in the context of the specified resource.
HTTP_PUT – puts a file or resource at a specific URI, and exactly at that URI. If there's already a file or resource at that URI, PUT replaces that file or resource. If there is no file or resource there, PUT creates one.
The fundamental difference between the POST and PUT requests is reflected in the different meaning of the Request-URI. The URI in a POST request identifies the resource that will handle the enclosed entity. That resource might be a data-accepting process, a gateway to some other protocol, or a separate entity that accepts annotations. In contrast, the URI in a PUT request identifies the entity enclosed with the request -- the user agent knows what URI is intended and the server MUST NOT attempt to apply the request to some other resource. If the server desires that the request be applied to a different URI, it MUST send a 301 (Moved Permanently) response; the user agent MAY then make its own decision regarding whether or not to redirect the request.
Example:
Dim enType As QueryType
Dim oWeb As Web
oWEB.QueryType = HTTP_POST
enType = oWEB.QueryType