Bug fix.

Checks whether an exception is thrown when sending data to an HTTP
request.