comp • • httpclient • get

HttpClient.Get (

Sub Get ( [ Headers As String[], TargetFile As String ] )

This method performs a call to the http server using the standard 'GET' method.

Prior to using it you have to fill the URL property with the desired host name and document to retrieve.

  • Headers is an optional String array of HTTP headers that are sent to the server with the request.

  • TargetFile is an optional file where the response will be written.

If TargetFile is not specified, data received from the server is stored in memory, and you can access the data using standard stream methods or the Peek method.

If TargetFile is specified, data received from the server will be saved in the specified file, and will be not available in the internal memory buffer.