http://mbed.org/users/donatien/code/HTTPClient/#277279a1891e