我需要像HttpURLConnection
Java一样的课程。
我可以使用HttpWebRequest
,但我需要这样的方法
HttpURLConnection connection = (HttpURLConnection)new URL(requestURL).openConnection();
for (Property p : property)
connection.addRequestProperty(p.key, p.value); //HttpWebRequest have that?
connection.connect();
有任何想法吗?