User Tools

Site Tools


api:dk11:java:tatukgis.jdk.tgis_webutils.httpfetch_string_tstream_tgis_busyevent_boolean_integer_5314d7f93d46102232242084bbbd7b96

Table of Contents

TGIS_WebUtils.HttpFetch method

DK11 for Java | tatukgis.jdk.TGIS_WebUtils.HttpFetch | Methods

Fetch data from http address

Available also on: Delphi | .NET.

Syntax

// Java
public static TGIS_HttpResponse HttpFetch(
  java.lang.String _url,
  TStream _strm,
  TGIS_BusyEvent _onBusy,
  bool _cache,
  int _timeout,
  java.lang.String _agent,
  java.lang.String _referer,
  java.lang.String _user,
  java.lang.String _pass,
  bool _decompress
);
// Oxygene
public
  class function HttpFetch(
    _url : String;
    _strm : TStream = nil;
    _onBusy : TGIS_BusyEvent = nil;
    _cache : Boolean = True;
    _timeout : Integer = 0;
    _agent : String = '';
    _referer : String = '';
    _user : String = '';
    _pass : String = '';
    _decompress : Boolean = True
  ) : TGIS_HttpResponse;

Parameters

Name Type Description
_url java.lang.String
String
http address (or file path)
_strm TStream stream to write returned data; if nil then stream will be allocated
_onBusy TGIS_BusyEvent busy event handle
_cache bool
Boolean
True if you caching
_timeout int
Integer
client time out in ms
_agent java.lang.String
String
client agent
_referer java.lang.String
String
referer address
_user java.lang.String
String
user name required for authentication
_pass java.lang.String
String
user password required for authentication
_decompress bool
Boolean
if true, then procedure will attmept to decompress downloaded file

Result

Type Description
TGIS_HttpResponse server response record defined as TGIS_HttpResponse
2020/12/31 01:14

Page Tools