Code example for URLConnection

Methods: getInputStream, getOutputStream, setDoOutput