http://mbed.org/users/donatien/code/HTTPClient/#1f743885e7de