使用HttpURLConnection的Get方式请求数据时,下列哪个属性是必须设置的
A、connection.setDoOutput(true)
B、connection.connect()
C、connection.setRequestMethod("POST")
D、connection.setDoInput(true)