Implementing more of the XHR interface.