亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? httpmethodbase.java

?? Light in the box 抓取程序。 使用HttpClient
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
     * @param state {@link HttpState state} information to associate with this     *        request. Must be non-null.     * @param conn the {@link HttpConnection connection} to used to execute     *        this HTTP method. Must be non-null.     *     * @return the integer status code if one was obtained, or <tt>-1</tt>     *     * @throws IOException if an I/O (transport) error occurs     * @throws HttpException  if a protocol exception occurs.     */    public int execute(HttpState state, HttpConnection conn)        throws HttpException, IOException {                        LOG.trace("enter HttpMethodBase.execute(HttpState, HttpConnection)");        // this is our connection now, assign it to a local variable so         // that it can be released later        this.responseConnection = conn;        checkExecuteConditions(state, conn);        this.statusLine = null;        this.connectionCloseForced = false;        conn.setLastResponseInputStream(null);        // determine the effective protocol version        if (this.effectiveVersion == null) {            this.effectiveVersion = this.params.getVersion();         }        writeRequest(state, conn);        this.requestSent = true;        readResponse(state, conn);        // the method has successfully executed        used = true;         return statusLine.getStatusCode();    }    /**     * Aborts the execution of this method.     *      * @since 3.0     */    public void abort() {        if (this.aborted) {            return;        }        this.aborted = true;        HttpConnection conn = this.responseConnection;         if (conn != null) {            conn.close();        }    }    /**     * Returns <tt>true</tt> if the HTTP method has been already {@link #execute executed},     * but not {@link #recycle recycled}.     *      * @return <tt>true</tt> if the method has been executed, <tt>false</tt> otherwise     */    public boolean hasBeenUsed() {        return used;    }    /**     * Recycles the HTTP method so that it can be used again.     * Note that all of the instance variables will be reset     * once this method has been called. This method will also     * release the connection being used by this HTTP method.     *      * @see #releaseConnection()     *      * @deprecated no longer supported and will be removed in the future     *             version of HttpClient     */    public void recycle() {        LOG.trace("enter HttpMethodBase.recycle()");        releaseConnection();        path = null;        followRedirects = false;        doAuthentication = true;        queryString = null;        getRequestHeaderGroup().clear();        getResponseHeaderGroup().clear();        getResponseTrailerHeaderGroup().clear();        statusLine = null;        effectiveVersion = null;        aborted = false;        used = false;        params = new HttpMethodParams();        responseBody = null;        recoverableExceptionCount = 0;        connectionCloseForced = false;        hostAuthState.invalidate();        proxyAuthState.invalidate();        cookiespec = null;        requestSent = false;    }    /**     * Releases the connection being used by this HTTP method. In particular the     * connection is used to read the response(if there is one) and will be held     * until the response has been read. If the connection can be reused by other      * HTTP methods it is NOT closed at this point.     *     * @since 2.0     */    public void releaseConnection() {        try {            if (this.responseStream != null) {                try {                    // FYI - this may indirectly invoke responseBodyConsumed.                    this.responseStream.close();                } catch (IOException ignore) {                }            }        } finally {            ensureConnectionRelease();        }    }    /**     * Remove the request header associated with the given name. Note that     * header-name matching is case insensitive.     *     * @param headerName the header name     */    public void removeRequestHeader(String headerName) {                Header[] headers = getRequestHeaderGroup().getHeaders(headerName);        for (int i = 0; i < headers.length; i++) {            getRequestHeaderGroup().removeHeader(headers[i]);        }            }        /**     * Removes the given request header.     *      * @param header the header     */    public void removeRequestHeader(final Header header) {        if (header == null) {            return;        }        getRequestHeaderGroup().removeHeader(header);    }    // ---------------------------------------------------------------- Queries    /**     * Returns <tt>true</tt> the method is ready to execute, <tt>false</tt> otherwise.     *      * @return This implementation always returns <tt>true</tt>.     */    public boolean validate() {        return true;    }    /**      * Returns the actual cookie policy     *      * @param state HTTP state. TODO: to be removed in the future     *      * @return cookie spec     */    private CookieSpec getCookieSpec(final HttpState state) {        if (this.cookiespec == null) {            int i = state.getCookiePolicy();            if (i == -1) {                this.cookiespec = CookiePolicy.getCookieSpec(this.params.getCookiePolicy());            } else {                this.cookiespec = CookiePolicy.getSpecByPolicy(i);            }            this.cookiespec.setValidDateFormats(                    (Collection)this.params.getParameter(HttpMethodParams.DATE_PATTERNS));        }        return this.cookiespec;    }    /**     * Generates <tt>Cookie</tt> request headers for those {@link Cookie cookie}s     * that match the given host, port and path.     *     * @param state the {@link HttpState state} information associated with this method     * @param conn the {@link HttpConnection connection} used to execute     *        this HTTP method     *     * @throws IOException if an I/O (transport) error occurs. Some transport exceptions     *                     can be recovered from.     * @throws HttpException  if a protocol exception occurs. Usually protocol exceptions      *                    cannot be recovered from.     */    protected void addCookieRequestHeader(HttpState state, HttpConnection conn)        throws IOException, HttpException {        LOG.trace("enter HttpMethodBase.addCookieRequestHeader(HttpState, "                  + "HttpConnection)");        Header[] cookieheaders = getRequestHeaderGroup().getHeaders("Cookie");        for (int i = 0; i < cookieheaders.length; i++) {            Header cookieheader = cookieheaders[i];            if (cookieheader.isAutogenerated()) {                getRequestHeaderGroup().removeHeader(cookieheader);            }        }        CookieSpec matcher = getCookieSpec(state);        String host = this.params.getVirtualHost();        if (host == null) {            host = conn.getHost();        }        Cookie[] cookies = matcher.match(host, conn.getPort(),            getPath(), conn.isSecure(), state.getCookies());        if ((cookies != null) && (cookies.length > 0)) {            if (getParams().isParameterTrue(HttpMethodParams.SINGLE_COOKIE_HEADER)) {                // In strict mode put all cookies on the same header                String s = matcher.formatCookies(cookies);                getRequestHeaderGroup().addHeader(new Header("Cookie", s, true));            } else {                // In non-strict mode put each cookie on a separate header                for (int i = 0; i < cookies.length; i++) {                    String s = matcher.formatCookie(cookies[i]);                    getRequestHeaderGroup().addHeader(new Header("Cookie", s, true));                }            }            if (matcher instanceof CookieVersionSupport) {                CookieVersionSupport versupport = (CookieVersionSupport) matcher;                int ver = versupport.getVersion();                boolean needVersionHeader = false;                for (int i = 0; i < cookies.length; i++) {                    if (ver != cookies[i].getVersion()) {                        needVersionHeader = true;                    }                }                if (needVersionHeader) {                    // Advertise cookie version support                    getRequestHeaderGroup().addHeader(versupport.getVersionHeader());                }            }        }    }    /**     * Generates <tt>Host</tt> request header, as long as no <tt>Host</tt> request     * header already exists.     *     * @param state the {@link HttpState state} information associated with this method     * @param conn the {@link HttpConnection connection} used to execute     *        this HTTP method     *     * @throws IOException if an I/O (transport) error occurs. Some transport exceptions     *                     can be recovered from.     * @throws HttpException  if a protocol exception occurs. Usually protocol exceptions      *                    cannot be recovered from.     */    protected void addHostRequestHeader(HttpState state, HttpConnection conn)    throws IOException, HttpException {        LOG.trace("enter HttpMethodBase.addHostRequestHeader(HttpState, "                  + "HttpConnection)");        // Per 19.6.1.1 of RFC 2616, it is legal for HTTP/1.0 based        // applications to send the Host request-header.        // TODO: Add the ability to disable the sending of this header for        //       HTTP/1.0 requests.        String host = this.params.getVirtualHost();        if (host != null) {            LOG.debug("Using virtual host name: " + host);        } else {            host = conn.getHost();        }        int port = conn.getPort();        // Note: RFC 2616 uses the term "internet host name" for what goes on the        // host line.  It would seem to imply that host should be blank if the        // host is a number instead of an name.  Based on the behavior of web        // browsers, and the fact that RFC 2616 never defines the phrase "internet        // host name", and the bad behavior of HttpClient that follows if we        // send blank, I interpret this as a small misstatement in the RFC, where        // they meant to say "internet host".  So IP numbers get sent as host        // entries too. -- Eric Johnson 12/13/2002        if (LOG.isDebugEnabled()) {            LOG.debug("Adding Host request header");        }        //appends the port only if not using the default port for the protocol        if (conn.getProtocol().getDefaultPort() != port) {            host += (":" + port);        }        setRequestHeader("Host", host);    }    /**     * Generates <tt>Proxy-Connection: Keep-Alive</tt> request header when      * communicating via a proxy server.     *     * @param state the {@link HttpState state} information associated with this method     * @param conn the {@link HttpConnection connection} used to execute     *        this HTTP method     *     * @throws IOException if an I/O (transport) error occurs. Some transport exceptions     *                     can be recovered from.     * @throws HttpException  if a protocol exception occurs. Usually protocol exceptions      *                    cannot be recovered from.     */    protected void addProxyConnectionHeader(HttpState state,                                            HttpConnection conn)    throws IOException, HttpException {        LOG.trace("enter HttpMethodBase.addProxyConnectionHeader("                  + "HttpState, HttpConnection)");        if (!conn.isTransparent()) {            if (getRequestHeader("Proxy-Connection") == null) {                addRequestHeader("Proxy-Connection", "Keep-Alive");            }        }    }    /**     * Generates all the required request {@link Header header}s      * to be submitted via the given {@link HttpConnection connection}.     *     * <p>     * This implementation adds <tt>User-Agent</tt>, <tt>Host</tt>,     * <tt>Cookie</tt>, <tt>Authorization</tt>, <tt>Proxy-Authorization</tt>     * and <tt>Proxy-Connection</tt> headers, when appropriate.     * </p>     *     * <p>     * Subclasses may want to override this method to to add additional     * headers, and may choose to invoke this implementation (via     * <tt>super</tt>) to add the "standard" headers.     * </p>     *     * @param state the {@link HttpState state} information associated with this method     * @param conn the {@link HttpConnection connection} used to execute     *        this HTTP method     *     * @throws IOException if an I/O (transport) error occurs. Some transport exceptions     *                     can be recovered from.     * @throws HttpException  if a protocol exception occurs. Usually protocol exceptions      *                    cannot be recovered from.     *     * @see #writeRequestHeaders     */    protected void addRequestHeaders(HttpState state, HttpConnection conn)    throws IOException, HttpException {        LOG.trace("enter HttpMethodBase.addRequestHeaders(HttpState, "            + "HttpConnection)");        addUserAgentRequestHeader(state, conn);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人黄色在线视频| 欧美激情一区在线观看| 粉嫩av亚洲一区二区图片| 日韩成人精品在线| 五月综合激情网| 亚洲一区二区三区影院| 亚洲综合免费观看高清完整版| 亚洲欧洲日本在线| 亚洲免费高清视频在线| 亚洲免费在线看| 亚洲一区视频在线观看视频| 一区二区在线观看av| 亚洲自拍偷拍av| 亚洲成av人片www| 日韩成人一区二区三区在线观看| 麻豆91在线观看| 日本va欧美va瓶| 国产美女精品人人做人人爽| 国产白丝精品91爽爽久久| 不卡的av中国片| 欧美色视频在线观看| 欧美精品丝袜中出| 亚洲精品一区二区三区在线观看| 久久综合视频网| 中文乱码免费一区二区| 亚洲激情五月婷婷| 热久久国产精品| 国产成人99久久亚洲综合精品| 成人黄色免费短视频| 精品视频在线免费看| 亚洲精品一区二区三区影院 | 一区二区三区日本| 午夜精品久久久久影视| 国内久久精品视频| 日本道在线观看一区二区| 91精品国产品国语在线不卡| 国产欧美日韩综合| 亚洲线精品一区二区三区八戒| 久久国内精品视频| 一本久久综合亚洲鲁鲁五月天 | 欧美调教femdomvk| 日韩精品一区二区三区在线观看| 中文字幕不卡的av| 亚洲成人第一页| 粉嫩aⅴ一区二区三区四区| 欧美日韩一区在线| 国产精品国产三级国产aⅴ中文 | 在线播放日韩导航| 国产精品国产三级国产专播品爱网| 亚洲第一久久影院| 不卡高清视频专区| 欧美成人国产一区二区| 一区二区高清在线| 不卡的av电影| 久久嫩草精品久久久精品一| 亚洲国产va精品久久久不卡综合| 国产大陆a不卡| 欧美一卡二卡三卡| 五月天国产精品| 在线看日本不卡| 国产精品女上位| 日韩精品高清不卡| 欧美视频日韩视频在线观看| 日本一区二区三区国色天香| 七七婷婷婷婷精品国产| 91在线免费视频观看| 2023国产一二三区日本精品2022| 亚洲成av人片在线| 色香蕉成人二区免费| 91精品国产综合久久久久久久久久| 一区二区三区四区在线免费观看| 成人h精品动漫一区二区三区| 久久嫩草精品久久久精品| 久久er99精品| 精品av久久707| 国产一区二区视频在线| 精品久久一二三区| 麻豆91在线播放免费| 欧美本精品男人aⅴ天堂| 天天色 色综合| 3atv在线一区二区三区| 天堂va蜜桃一区二区三区| 在线播放中文一区| 蜜臀va亚洲va欧美va天堂| 日韩视频免费观看高清完整版在线观看| 亚洲成人动漫一区| 日韩一区二区三区电影在线观看| 日韩高清不卡一区| 精品91自产拍在线观看一区| 国产福利一区二区三区| 国产精品亲子伦对白| 色婷婷亚洲精品| 亚洲一区成人在线| 91精品国产高清一区二区三区蜜臀| 日韩黄色小视频| 久久久久久久久久看片| 国产成人精品影院| 亚洲精品国久久99热| 欧美性受极品xxxx喷水| 青青青爽久久午夜综合久久午夜| 亚洲精品一区二区三区精华液| 国产精品小仙女| 亚洲柠檬福利资源导航| 欧美色倩网站大全免费| 精品中文字幕一区二区| 国产精品国产三级国产专播品爱网| 欧美自拍丝袜亚洲| 久久av资源网| 亚洲婷婷综合久久一本伊一区| 欧美日韩中文字幕精品| 国产精品久久久久久久久免费相片| 91麻豆精品在线观看| 免费日本视频一区| 国产精品国产三级国产专播品爱网| 精品视频1区2区3区| 国产精品一区二区免费不卡| 亚洲少妇屁股交4| 精品久久一区二区三区| 日本乱人伦aⅴ精品| 精品一区二区三区香蕉蜜桃| 亚洲蜜桃精久久久久久久| 精品99999| 欧美日韩精品一区二区三区蜜桃| 国产精品系列在线播放| 亚洲国产一区二区视频| 国产精品三级av在线播放| 99精品在线观看视频| 亚洲一级二级在线| 国产精品久久久久久久久晋中| 制服丝袜亚洲播放| 成人av午夜电影| 亚洲午夜私人影院| 最好看的中文字幕久久| 2021久久国产精品不只是精品| 欧美丝袜丝交足nylons| 99re亚洲国产精品| 捆绑紧缚一区二区三区视频| 亚洲亚洲人成综合网络| 国产精品久久久久久久久免费丝袜| 欧美日韩国产影片| 国产精品99久| 日韩成人免费看| 亚洲gay无套男同| 国产精品嫩草久久久久| 久久久久久影视| 亚洲精品在线观| 91传媒视频在线播放| 99热在这里有精品免费| 粉嫩绯色av一区二区在线观看| 激情图片小说一区| 日韩高清在线观看| 日本成人在线视频网站| 日本aⅴ免费视频一区二区三区| 亚洲国产另类av| 亚洲综合色网站| 亚洲国产一二三| 天天综合天天综合色| 午夜伊人狠狠久久| 五月天亚洲精品| 免费在线成人网| 韩国女主播一区| 国产精品综合久久| 成人一道本在线| 91麻豆国产在线观看| 在线观看不卡一区| 欧美性xxxxx极品少妇| 欧美日本韩国一区二区三区视频| 欧美日本一道本| 精品美女在线播放| 久久精品一区蜜桃臀影院| 国产欧美精品一区| 亚洲美女屁股眼交3| 亚洲午夜三级在线| 久久国产精品第一页| 国产精品18久久久久久久网站| 国产999精品久久| 色哟哟一区二区| 欧美日韩电影在线| 久久综合九色综合97婷婷| 亚洲国产精品精华液ab| 一区二区免费看| 美女在线视频一区| 成人av免费在线播放| 在线精品视频免费观看| 欧美一区二区三区爱爱| 国产无人区一区二区三区| 亚洲欧美一区二区不卡| 日本va欧美va精品发布| 成人av网在线| 日韩欧美国产精品| 亚洲手机成人高清视频| 日本美女视频一区二区| 成人av在线一区二区| 欧美性大战久久久| 欧美国产欧美综合| 日韩主播视频在线| 狠狠色综合播放一区二区| 在线一区二区三区四区五区| 337p日本欧洲亚洲大胆色噜噜| 一区二区三区中文字幕精品精品 |