IAPI::SetHttpProxy

property SetHttpProxy.

Sets a Proxy Server path or URL before calling OpenHttpFile or OpenHttpFileEx.  ( Available since v2.33.7  )
This property is to be used from within an app/script when Internet Access is provided by a Proxy Server. 

 

HRESULT SetHttpProxy(
  BSTR ProxyPath,
  long AutoConfigURL = 0 ,
  long *pVal
);

Parameters

ProxyPath

[in] .   String containing Path or URL which points to Proxy Server location

               (e.g: “http://IAProxy:8080” or “http://IAServer/get_proxy_info.dll” )

AutoConfigURL

[ in,optional ]

         If value is 1, this means that ProxyPath parameter contains a script or URL for auto-configuring Proxy Server.

pVal

[out, retval] The returned value is 0 when succeeded or an error number  if failed.

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI