I need to make a put request to a server that return a first response (HTTP/1.1 204 No Content) and a second response (EVENT/1.0 200 OK) at different times. My code is based on