Fixed Xively http requests