Code example for URLConnection

Methods: getInputStream, getOutputStream, setDoInput, setDoOutput, setRequestProperty, setUseCaches