setDoOutput(true)
is used for POST
and PUT
requests. If it is false
then it is for using GET
requests.
↧
Answer by Petar Minchev for What exactly does URLConnection.setDoOutput() affect?
↧
setDoOutput(true)
is used for POST
and PUT
requests. If it is false
then it is for using GET
requests.