Click or drag to resize
CHTTPCreate Method
This method creates a connection to an HTTP server

Available since Oasis montaj version: 5.0.0
License: Available to anyone.  

Namespace: Geosoft.Desktop.GXNet
Assembly: geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll)
Notes
An OM user has the ability to control access and verification of access to servers over the Internet. A GX Developer has no way to change the users choice of access. This is to prevent the creation of GX's that may be dangerous or may be used to collect information without the knowledgede of the user. If the specified URL is restricted from access by the user, the create function will fail. If the specified URL has not been accessed by this user before, or if the user has this site on "Verify", the user will be presented with a dialog requiring verification before communication can begin. The user may choose to change the server site to a full "Trust" relationship, in which case the verification message will not reappear unless the site is explicitly changed back to verify or is restricted. If you intend your GX to communicate with a server without verification, you must instruct your user to change their trust relationship with your server to "Trusted". Your user will have the opportunity to do so the first time a script is run.
Syntax
public static CHTTP Create(
	string str1,
	string str2,
	string str3,
	string str4
)

Parameters

str1
Type: SystemString
URL of the server
str2
Type: SystemString
user name, "" for none
str3
Type: SystemString
password, "" for none
str4
Type: SystemString
Purpose of communication (for user verification)

Return Value

Type: CHTTP
HTTP Object
See Also