IAPI::OpenHttpFileAt

property OpenHttpFileAt. ( 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)

 

HRESULT OpenHttpFileAt(
  BSTR httpPath,
  BSTR FileName,
  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" )

Offset

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

header_size

[ in,optional ]   ( Available since v2.33.6  )

         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