Click or drag to resize

CINTERNETiDownloadHTTP Method

Download HTTP file from the internet to file.

Namespace:  Geosoft.Desktop.GXNetX
Assembly:  geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll) Version: 2025.1.0.25
Syntax
public static int iDownloadHTTP(
	CGXNETCore gxNetShared,
	string url,
	string file,
	int size
)

public static int iDownloadHTTP(
	CGXNETCore gxNetShared,
	string url,
	string file,
	int size
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
url
Type: SystemString
HTTP URL
file
Type: SystemString
File Name to save to
size
Type: SystemInt32
No longer used, just pass 0

Return Value

Type: Int32
0 - Ok 1 - Error
Remarks
The file must be stored on a server that supports the HTTP protocol and not require a password.
See Also