IAPI::OpenHttpFileEx

property OpenHttpFileEx. ( Available since v2.33.7  )

Opens a file or executes an active script (PHP, ASP..) located in a Web site over Http/Https, in order to read its contents. 
This property is to be used from within an app/script instead of OpenHttpFile when Internet Access is provided by a Proxy Server. 

 

HRESULT OpenHttpFileEx(
  BSTR httpPath,
  BSTR FileName,
  BSTR ProxyUsername,
  BSTR ProxyPassword,
  long header_size = 0 ,
  long *pVal
);

Parameters

httpPath

[in] .   Root URL of the Web site. (e.g “http://sites.google.com” )

FileName

[in] .   Fullpath filename on the Web ( e.g "site/sovannpub/home/Wizapi.zip" )

ProxyUsername

[in] .   Username for Proxy Server

ProxyPassword

[in] .   Password for Proxy Server

 

header_size

[ in,optional ]

         Specifies the header area length that prefixes the real message. Client app must use this parameter

when submitting requests and consuming data from a Webservice (e.g Requester.php).

pVal

[out, retval] The returned value is the handle of the Web file or 0 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