• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            大龍的博客

            常用鏈接

            統計

            最新評論

            Question about URLConnection

            I have found that class "URLConnection" has methods to establish a connection, for example, method "openConnection" and method "connect". But I have not found any methods of this class which are dealing with disconnect. I am wondering if I use class "URLConnection" to establish an HTTP connection to a remote host, what is the correct, clean and efficient approach to disconnect from remote host or close the connection.

            1) for HTTP why not use HttpURLConnection instead?
            2) HTTP is a stateless protocol meaning the server will close the connection for you.
            3) if you close all streams you get from the URLConnection the connection is gone.


            posted on 2011-09-23 05:22 大龍 閱讀(235) 評論(0)  編輯 收藏 引用

            国产精品免费福利久久| 久久亚洲高清综合| 久久精品一本到99热免费| 精品免费久久久久久久| 欧美粉嫩小泬久久久久久久 | 2021精品国产综合久久| 久久亚洲精品国产精品| 99久久精品国产一区二区蜜芽| 久久99热这里只有精品国产 | 色欲av伊人久久大香线蕉影院| 久久99热狠狠色精品一区| 综合久久精品色| 久久99精品国产一区二区三区 | 久久久久久久97| 四虎影视久久久免费观看| 久久精品国内一区二区三区| 777午夜精品久久av蜜臀| 久久国产午夜精品一区二区三区| 精品国际久久久久999波多野| 日日狠狠久久偷偷色综合0| 久久综合九色综合欧美狠狠| 亚洲国产精品一区二区久久hs | 久久久久综合国产欧美一区二区| 亚洲乱码精品久久久久..| 亚洲?V乱码久久精品蜜桃| 国产福利电影一区二区三区久久老子无码午夜伦不 | 久久se精品一区二区影院| 狠狠色丁香久久婷婷综| 伊人久久大香线蕉av不卡 | 蜜臀久久99精品久久久久久小说| 久久久无码精品午夜| 99久久久久| 国产精品久久久99| 国产福利电影一区二区三区久久老子无码午夜伦不 | 久久人人爽人人爽人人AV东京热| 久久这里有精品视频| 久久国产精品视频| 久久久久久久国产免费看| 久久久久99精品成人片| 久久伊人五月天论坛| 久久精品国产精品亚洲下载|