-Use URLConnection instead of libcurl