Next Topic

Previous Topic

Book Contents

Post

int Post(string sUrl,string sHeaders=NULL,string sData=NULL)

Return values

Non zero if the function is successful; otherwise 0, and a specific error code can be retrieved by calling global function GetLastError.

Parameters

  • sUrl - URL relative to the base URL of the site.
  • sHeaders - Optional header string containing headers to be sent with the request.
  • sData - Optional data to include in post request.

Remarks

The connection is always opened in the context of the object, therefore the URL supplied to the function must be relative the base URL. Each header supplied must be ended with a CR/LF pair.