Added another solution using curl