Change to curl to solve connection and performance problems