 | CHTTPCreate Method |
This method creates a connection to an HTTP server
Namespace:
Geosoft.Desktop.GXNetX
Assembly:
geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll) Version: 2024.2.0.25
Syntaxpublic static CHTTP Create(
CGXNETCore gxNetShared,
string url,
string user_name,
string password,
string purpose
)
public static CHTTP Create(
CGXNETCore gxNetShared,
string url,
string user_name,
string password,
string purpose
)
Public Shared Function Create (
gxNetShared As CGXNETCore,
url As String,
user_name As String,
password As String,
purpose As String
) As CHTTP
Public Shared Function Create (
gxNetShared As CGXNETCore,
url As String,
user_name As String,
password As String,
purpose As String
) As CHTTP
public:
static CHTTP^ Create(
CGXNETCore^ gxNetShared,
String^ url,
String^ user_name,
String^ password,
String^ purpose
)
public:
static CHTTP^ Create(
CGXNETCore^ gxNetShared,
String^ url,
String^ user_name,
String^ password,
String^ purpose
)
static member Create :
gxNetShared : CGXNETCore *
url : string *
user_name : string *
password : string *
purpose : string -> CHTTP
static member Create :
gxNetShared : CGXNETCore *
url : string *
user_name : string *
password : string *
purpose : string -> CHTTP
Parameters
- gxNetShared
- Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore - url
- Type: SystemString
URL of the server - user_name
- Type: SystemString
User name, "" for none - password
- Type: SystemString
Password, "" for none - purpose
- Type: SystemString
Purpose of communication (for user verification)
Return Value
Type:
CHTTPHTTP Object
Remarks
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.
See Also