题目内容
(请给出正确答案)
[单选题]
使用HttpURLConnection的Get方式请求数据时,下列哪个属性是必须设置的
A.connection.setDoOutput(true)
B.connection.connect()
C.connection.setRequestMethod("POST")
D.connection.setDoInput(true)
查看答案
如果结果不匹配,请 联系老师 获取答案
A.connection.setDoOutput(true)
B.connection.connect()
C.connection.setRequestMethod("POST")
D.connection.setDoInput(true)
A.getResponseCode
B.getInputStream
C.getConnected
D.setConnected