IAPI::OpenHttpFileExAt

property OpenHttpFileExAt. ( Available since v2.38.5  )

Opens a file or executes an active script (PHP, ASP..) located in a Web site over Http/Https, in order to read its contents

with support of resume mode (file offset). This property is to be used from within an app/script instead of OpenHttpFile

when Internet Access is provided by a Proxy Server. 

 

HRESULT OpenHttpFileExAt(
  BSTR httpPath,
  BSTR FileName,
  BSTR ProxyUsername,
  BSTR ProxyPassword,
  BSTR Offset="0",
  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

Offset

[in,optional] . Indicate the offset in bytes from which the Web file should be read again (resume)

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