Back to product page

Custom method


Defines your own HTTP method.

Type

None

Syntax

  • Basic
object.Custom Method, [Request]
The Custom(object,Method,Request) syntax has these parts:
objectAn expression evaluating to an object of type wodHttpDLX.
MethodRequired. A String value. Holds request method text.
RequestOptional. A Variant value. Holds ful URL to resource on the server.

Remarks

Supported HTTP 1.1 methods are GET, HEAD, POST, PUT, DELETE, TRACE. However, the server might support additional methods. With the Custom method, the user is able to send a custom pre-defined request to the server.

For example, (code in VB):
 
Http1.Custom "GET"
 

sends a request line like this:
 
GET / ....
 

This example is the same as issuing the wodHttp1.GET method. Note: Some new servers support HTTP methods such as LINK, UNLINK, PATCH, etc. Use the Custom method to implement these new HTTP methods.

Platforms

Windows