troydavisson/PHRETS — pull request #40 by patrickcarlohickman (2014-05-06 17:40:19+00:00)
Title: Added POST request support with a new parameter.

This pull request adds support for using POST requests, instead of GET requests. The functionality is enabled using a new boolean parameter `use_post_method`. When `use_post_method` is set to true, cURL will issue POST requests, otherwise cURL will issue GET requests. The default is false (GET).

Additionally, the functionality has been implemented in such a way that the value of the parameter will be taken into account on each request, not just during `Connect()`. This means, throughout the life of a session, some requests can be GETs, and some can be POSTs.

One use case for using POST requests is to allow for exceptionally long RETS queries. In this case, the RETS query can generate a query string that is too long for GET requests, and a POST request must be used.