I just wrapped the standard example code in a try {} catch {} and was faced with a crash whenever an exception was thrown, because the http::client was deallocated by the stack unwind.
Put a note or something that the client should be outside the scope of the try/catch