题目内容
(请给出正确答案)
[单选题]
HttpURLConnection类可以通过()方法获取服务端的应答码。
A.getInputStream
B.getResponseCode
C.connection
D.disconnect
查看答案
如果结果不匹配,请 联系老师 获取答案
A.getInputStream
B.getResponseCode
C.connection
D.disconnect
A.getResponseCode
B.getInputStream
C.getConnected
D.setConnected
A.connection.setDoOutput(true)
B.connection.connect()
C.connection.setRequestMethod("POST")
D.connection.setDoInput(true)