Back to product page

Put method


Sends resource to remote server.

Type

None

Syntax

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

Remarks

This method is used to send documents to an HTTP server. For this method to work correctly, the user must fill the Request Body property with the document that needs to be stored on the server. URL should hold the path where resource should be saved.

For example, on non-secured servers the following lines would be considered as break-in:
 
wodHttp1.Host = "some.server.com"
wodHttp1.Request.Body = " Hello!"
wodHttp1.Put "/"
 

Most servers do not allow the storing of documents. Usually additional headers with authorization content are needed for this method to complete successfully. Rather, use Post method for sending data to the server.

Platforms

Windows