patched the client library to use wp http api