This is the most common method used to retrieve a
document from a remote server. When this method is called,
you should provide full URL to the resource you wish to
Get, or you can provide Hostname,
Request.URI, optional
login/password
information, Headers, etc..
before you call this method. Upon completion of this
method, the Response Object is
filled with information received from the server.
Example -- the following code would automatically
connect to a server, send the Get request to the server,
receive a document, and Disconnect
from the server (code in VB).
wodHttp1.Blocking = True
wodHttp1.Host = "www.weonlydo.com"
wodHttp1.Get "/"
Debug.Print
Http1.Response.Body
If connection with the server is done manually using the
Connect method, the Get method should be used inside the
Connected
event (for async model), or after Connect is called (for
blocking mode).
For pipelined requests, more than one method can be
called line by line ( they do not necessarily have to be
inside the same event). These methods do not need to be the
same ( you can also call POST, PUT etc.)
Each issued method is stored and sent to the server in
sequence. The user should expect to receive documents in
the same sequence.
Pipelined requests are only possible if the user has
manually connected to a remote server.