UnionOfRAD/lithium — pull request #587 by fellars (2012-07-18 18:12:57+00:00)
Title: Curl Option support for Curl Socket

can now pass curl options in either the Socket configuration array or the array passed to open function via an 'options' key inside either array (open parameter data takes precedence if collision).

Test cases provided for both scenarios in CurlTest cases.

Downside still remaining that anything passed directly via ->set() call prior to ->open() call will get deleted.

Another way around this would be to change the call to reset option which happens in first line of open() method and put that in the close() method so reset happens when connection closes instead of when opened. I didn't want to go there as some may be dependent on open() implementation.