IAPI::OpenHttpAndPost

property OpenHttpAndPost. ( Available since v2.34.3  )

 

Opens an URL and POSTs a list of parameters to an active script (PHP, ASP..) located in a Web site over Http/Https,

in order to read its contents after running.

From server script side, the received parameters sit into a POST array such like from HTML Form’s fields.

 

HRESULT OpenHttpAndPost(
  BSTR httpPath,
  BSTR URLName,
  BSTR UrlEncodedPOSTVars,
  long header_size = 0 ,
  long *pVal
);

Parameters

httpPath

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

URLName

[in] .   Fullpath filename on the Web ( e.g "/ActiveScript.php" )

UrlEncodedPOSTVars

[in] .   POST variable list which must be first encoded with URLEncode(…) if necessary.

                For example: “update=77&userdata=12345&appID=678”

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