Updated code to enable two methods to sending requests, have now moved the default file_get_contents() method into a seperare private method and added a new 'use_curl' class property.
Added new method to enable cURL.
Changed the proxy authentication details so they are not base64_encoded by default as the cURL setopt requires this in plaintext, so I have therefore removed the string from being stored in the object property as a base64 string to just a plaintext string and have now added the base64_encode function to be wrapped around inside the requestViaFileGetContents() function. Also added alot more code to the cURL sending method.
Added rest of the code to enable the requestViaCurl method to work, atleast for testing at the current time. I will now test the functioanlity mimics that of the requestViaFileGetContents method.
Testing new cURL changes to the library, a few issues at the moment with trying to get cURL working via. an authenticated proxy but should have this resolved shortly.