Use cURL to keep the connection alive

Change-Id: I3bb0bb3773fcae86b334bbf62adc9a87c4280428
Merge "Use cURL to keep the connection alive"