Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Posting parameters

As of the release of 20161213of 20161213 (which can be found in the repo), all functions that allows postData to be sent in a web call may be posted quite freely. You can either put postData in the standard format like:


You may also sent your requested data through the function as an array() or even a JSON-object. Such call may look like this:

Code Block
doPost("", $postDataObject, CURL_POST_AS::POST_AS_JSON)

The function itself tries to detect if the input $postDataObject is encoded or decoded (keep in mind that problems with NAN-values or similar is not supported).