• <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 大龍 閱讀(237) 評論(0)  編輯 收藏 引用

            99精品国产99久久久久久97| 国产精品无码久久综合| 亚洲欧洲精品成人久久曰影片 | 91精品国产高清久久久久久91 | 三上悠亚久久精品| 久久精品国产亚洲网站| 久久久艹| 精品久久久久久亚洲精品| 国产精品久久国产精品99盘| 岛国搬运www久久| 久久国内免费视频| 色偷偷888欧美精品久久久| 伊人久久国产免费观看视频| 久久99精品久久久久婷婷| 亚洲?V乱码久久精品蜜桃| 久久96国产精品久久久| 国产精品久久久久a影院| 久久亚洲欧美日本精品| 精品国产99久久久久久麻豆| 久久久久国色AV免费观看| AAA级久久久精品无码片| 久久久久久伊人高潮影院| 久久se这里只有精品| 久久精品国产99国产精品澳门 | 久久综合色区| 91性高湖久久久久| 色噜噜狠狠先锋影音久久| 久久久久国产精品熟女影院| 亚洲中文字幕久久精品无码喷水| 久久青青草原精品国产软件| 国产成人久久精品二区三区| 久久99热国产这有精品| 久久精品国内一区二区三区| 久久久久无码精品国产不卡| 日韩人妻无码精品久久免费一| 无码八A片人妻少妇久久| 亚洲人成电影网站久久| 无码人妻久久一区二区三区蜜桃 | 国产毛片久久久久久国产毛片| 久久精品国产只有精品2020| 99久久精品免费|