Record TInternetConfig

Hierarchy
Properties

Unit

Declaration

type TInternetConfig = record

Description

Internet configuration

Not all options are supported by all backends. Compatibility matrix:

option

wininet (w32)

synapse

OkHttp for Android

(Android) Apache HttpComponents

useragent

yes

yes

yes

yes

tryDefaultConfig

yes

no

no

no

http proxy

yes

yes

no

yes

https proxy

yes

should use http proxy

no

should use http proxy

socks proxy

yes

yes

no

no

proxy user/pass

same auth for all proxies

separate for http and socks

no

no

checkSSLCertificates

yes

yes

no, depends on Android

no, depends on Android

cafile/capath

no, uses system CA

yes

no

no

You can always set more options on the internalHandle returned by TInternetAccess.

Overview

Fields

Public userAgent: string;
Public tryDefaultConfig: boolean;
Public useProxy: Boolean;
Public proxyHTTPName: string;
Public proxyHTTPPort: string;
Public proxyHTTPSName: string;
Public proxyHTTPSPort: string;
Public proxySOCKSName: string;
Public proxySOCKSPort: string;
Public proxyUsername: string;
Public proxyPassword: string;
Public connectionCheckPage: string;
Public checkSSLCertificates: boolean;
Public CAFile: string;
Public CAPath: string;
Public logToPath: string;

Methods

Public procedure setProxy(proxy: string);
Public procedure searchCertificates;
Public function equalsUserAgent(const otherConfig: TInternetConfig): boolean;
Public function equalsProxy(const otherConfig: TInternetConfig): boolean;

Description

Fields

Public userAgent: string;

the user agent used when connecting

Public tryDefaultConfig: boolean;

should the system default configuration be used

Public useProxy: Boolean;

should a proxy be used

Public proxyHTTPName: string;

proxy used for HTTP

Public proxyHTTPPort: string;

proxy used for HTTP

Public proxyHTTPSName: string;

proxy used for HTTPS

Public proxyHTTPSPort: string;

proxy used for HTTPS

Public proxySOCKSName: string;

socks proxy

Public proxySOCKSPort: string;

socks proxy

Public proxyUsername: string;
 
Public proxyPassword: string;
 
Public connectionCheckPage: string;

url we should open to check if an internet connection exists (e.g. http://google.de)

Public checkSSLCertificates: boolean;

If ssl certificates should be checked in HTTPS connections

Public CAFile: string;

CA certificates when using OpenSSL

Public CAPath: string;

CA certificates when using OpenSSL

Public logToPath: string;
 

Methods

Public procedure setProxy(proxy: string);
 
Public procedure searchCertificates;
 
Public function equalsUserAgent(const otherConfig: TInternetConfig): boolean;
 
Public function equalsProxy(const otherConfig: TInternetConfig): boolean;
 

Generated by PasDoc 0.16.0.