| 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.GXNetAssembly: 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
)
Public Shared Function Create (
str1 As String,
str2 As String,
str3 As String,
str4 As String
) As CHTTP
public:
static CHTTP^ Create(
String^ str1,
String^ str2,
String^ str3,
String^ str4
)
static member Create :
str1 : string *
str2 : string *
str3 : string *
str4 : string -> CHTTP
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:
CHTTPHTTP Object
See Also