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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? expectcontinuemethod.java

?? Light in the box 抓取程序。 使用HttpClient
?? JAVA
字號:
/* * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//httpclient/src/java/org/apache/commons/httpclient/methods/ExpectContinueMethod.java,v 1.13 2004/05/08 10:12:08 olegk Exp $ * $Revision: 480424 $ * $Date: 2006-11-29 06:56:49 +0100 (Wed, 29 Nov 2006) $ * * ==================================================================== * *  Licensed to the Apache Software Foundation (ASF) under one or more *  contributor license agreements.  See the NOTICE file distributed with *  this work for additional information regarding copyright ownership. *  The ASF licenses this file to You under the Apache License, Version 2.0 *  (the "License"); you may not use this file except in compliance with *  the License.  You may obtain a copy of the License at * *      http://www.apache.org/licenses/LICENSE-2.0 * *  Unless required by applicable law or agreed to in writing, software *  distributed under the License is distributed on an "AS IS" BASIS, *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *  See the License for the specific language governing permissions and *  limitations under the License. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation.  For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */package org.apache.commons.httpclient.methods;import java.io.IOException;import org.apache.commons.httpclient.HttpConnection;import org.apache.commons.httpclient.HttpException;import org.apache.commons.httpclient.HttpMethodBase;import org.apache.commons.httpclient.HttpState;import org.apache.commons.httpclient.HttpVersion;import org.apache.commons.httpclient.params.HttpMethodParams;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;/** * <p> * This abstract class serves as a foundation for all HTTP methods  * that support 'Expect: 100-continue' handshake. * </p> *  * <p> * The purpose of the 100 (Continue) status (refer to section 10.1.1  * of the RFC 2616 for more details) is to allow a client that is  * sending a request message with a request body to determine if the  * origin server is willing to accept the request (based on the request  * headers) before the client sends the request body. In some cases, * it might either be inappropriate or highly inefficient for the  * client to send the body if the server will reject the message  * without looking at the body. * </p> *  * <p> * 'Expect: 100-continue' handshake should be used with caution, * as it may cause problems with HTTP servers and proxies that * do not support HTTP/1.1 protocol. * </p> *  * @author <a href="mailto:oleg@ural.ru">Oleg Kalnichevski</a> * * @since 2.0beta1 */public abstract class ExpectContinueMethod extends HttpMethodBase {        /** LOG object for this class. */    private static final Log LOG = LogFactory.getLog(ExpectContinueMethod.class);    /**     * No-arg constructor.     *     * @since 2.0     */    public ExpectContinueMethod() {        super();    }    /**     * Constructor specifying a URI.     *     * @param uri either an absolute or relative URI     *     * @since 2.0     */    public ExpectContinueMethod(String uri) {        super(uri);    }    /**     * <p>     * Returns <tt>true</tt> if the 'Expect: 100-Continue' handshake     * is activated. The purpose of the 'Expect: 100-Continue'      * handshake to allow a client that is sending a request message      * with a request body to determine if the origin server is      * willing to accept the request (based on the request headers)      * before the client sends the request body.     * </p>     *      * @return <tt>true</tt> if 'Expect: 100-Continue' handshake is to     * be used, <tt>false</tt> otherwise.     *      * @since 2.0beta1     *      * @deprecated Use {@link HttpMethodParams}     *      * @see #getParams()     * @see HttpMethodParams     * @see HttpMethodParams#USE_EXPECT_CONTINUE     */    public boolean getUseExpectHeader() {        return getParams().getBooleanParameter(HttpMethodParams.USE_EXPECT_CONTINUE, false);    }    /**     * <p>     * Activates 'Expect: 100-Continue' handshake. The purpose of      * the 'Expect: 100-Continue' handshake to allow a client that is      * sending a request message with a request body to determine if      * the origin server is willing to accept the request (based on      * the request headers) before the client sends the request body.     * </p>     *      * <p>     * The use of the 'Expect: 100-continue' handshake can result in      * noticable peformance improvement for entity enclosing requests     * (such as POST and PUT) that require the target server's      * authentication.     * </p>     *      * <p>     * 'Expect: 100-continue' handshake should be used with      * caution, as it may cause problems with HTTP servers and      * proxies that do not support HTTP/1.1 protocol.     * </p>     *      * @param value boolean value     *      * @since 2.0beta1     *      * @deprecated Use {@link HttpMethodParams}     *      * @see #getParams()     * @see HttpMethodParams     * @see HttpMethodParams#USE_EXPECT_CONTINUE     */    public void setUseExpectHeader(boolean value) {        getParams().setBooleanParameter(HttpMethodParams.USE_EXPECT_CONTINUE, value);    }    /**     * Returns <tt>true</tt> if there is a request body to be sent.     * 'Expect: 100-continue' handshake may not be used if request     * body is not present     *      * @return boolean     *      * @since 2.0beta1     */    protected abstract boolean hasRequestContent();    /**     * Sets the <tt>Expect</tt> header if it has not already been set,      * in addition to the "standard" set of headers.     *     * @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 addRequestHeaders(HttpState state, HttpConnection conn)    throws IOException, HttpException {        LOG.trace("enter ExpectContinueMethod.addRequestHeaders(HttpState, HttpConnection)");                super.addRequestHeaders(state, conn);        // If the request is being retried, the header may already be present        boolean headerPresent = (getRequestHeader("Expect") != null);        // See if the expect header should be sent        // = HTTP/1.1 or higher        // = request body present        if (getParams().isParameterTrue(HttpMethodParams.USE_EXPECT_CONTINUE)         && getEffectiveVersion().greaterEquals(HttpVersion.HTTP_1_1)         && hasRequestContent())        {            if (!headerPresent) {                setRequestHeader("Expect", "100-continue");            }        } else {            if (headerPresent) {                removeRequestHeader("Expect");            }        }    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91免费在线视频观看| 无码av免费一区二区三区试看| 久久99在线观看| 日韩一区二区精品葵司在线| 日韩高清不卡在线| 欧美成人bangbros| 国产精品一级在线| 成人免费在线视频观看| 91香蕉视频在线| 亚洲国产一区视频| 日韩一区二区三区四区五区六区| 免费视频一区二区| 日本一区二区免费在线观看视频 | 美女爽到高潮91| 日韩一区二区影院| 懂色一区二区三区免费观看| 综合久久给合久久狠狠狠97色| 欧美中文字幕一区二区三区 | 精品国产区一区| 国产69精品久久久久777| 国产精品美女久久久久高潮| 色88888久久久久久影院野外| 丝袜脚交一区二区| 国产亚洲自拍一区| 欧美视频第二页| 国产老肥熟一区二区三区| 综合欧美亚洲日本| 日韩午夜av电影| 欧美精品乱码久久久久久按摩| 日韩高清不卡一区| 国产精品私人影院| 日韩一级在线观看| 91色视频在线| 国产麻豆精品在线| 亚洲电影在线播放| 国产欧美一区二区三区在线看蜜臀 | 欧美一区二区三区影视| 国产成人精品一区二 | 五月激情综合婷婷| 久久久高清一区二区三区| 欧美图区在线视频| 国产成人精品影视| 久久激情五月激情| 亚洲国产aⅴ天堂久久| 国产精品久久午夜夜伦鲁鲁| 日韩精品中文字幕在线不卡尤物| 91色porny| 一区二区三区在线不卡| 久久精品视频免费| 日韩精品一区二区在线| 在线观看91视频| www.在线成人| 国产精品影视在线观看| 日本午夜一本久久久综合| 亚洲黄一区二区三区| 国产天堂亚洲国产碰碰| 精品第一国产综合精品aⅴ| 欧美精品九九99久久| 在线视频国内自拍亚洲视频| 成人福利视频在线看| 国产乱人伦偷精品视频不卡| 美女视频黄 久久| 青青草一区二区三区| 婷婷亚洲久悠悠色悠在线播放| 亚洲综合免费观看高清完整版在线| 国产精品美女久久久久高潮| 国产欧美日韩亚州综合| 久久这里只有精品首页| 精品国产欧美一区二区| 日韩欧美国产系列| 精品乱人伦一区二区三区| 91精品国产福利在线观看| 欧美日韩一区二区三区在线看| 色综合久久中文字幕| 91色在线porny| 日本韩国欧美在线| 色婷婷综合久久久久中文| 色综合 综合色| 色婷婷亚洲婷婷| 欧美性大战久久久| 欧美日韩高清一区二区三区| 欧美人伦禁忌dvd放荡欲情| 欧美日韩国产123区| 91精品国产麻豆| 久久亚洲欧美国产精品乐播| 久久精品在这里| 国产精品传媒入口麻豆| 亚洲精品ww久久久久久p站| 一区二区三区日韩| 亚洲图片欧美色图| 日本视频免费一区| 精品无码三级在线观看视频| 国产乱子轮精品视频| 成人免费观看视频| 91黄色免费版| 日韩美女视频一区二区在线观看| 久久日一线二线三线suv| 国产日韩欧美精品电影三级在线| 国产精品久久久久久久久久久免费看| 亚洲天堂a在线| 午夜成人免费视频| 国产一区二区影院| 色哟哟亚洲精品| 日韩一区二区精品| 国产精品国产成人国产三级| 午夜电影一区二区三区| 国产精品综合av一区二区国产馆| 成人免费精品视频| 欧美日韩午夜影院| 欧美国产激情一区二区三区蜜月| 亚洲精选在线视频| 久久精品理论片| 色欧美片视频在线观看 | 日韩免费成人网| 综合激情成人伊人| 肉色丝袜一区二区| 白白色 亚洲乱淫| 欧美一级黄色片| 国产精品欧美一区二区三区| 日韩综合小视频| 99re这里都是精品| 日韩欧美你懂的| 伊人夜夜躁av伊人久久| 美美哒免费高清在线观看视频一区二区 | 欧美电影精品一区二区| ●精品国产综合乱码久久久久 | 久久成人免费电影| 色香蕉久久蜜桃| 中文字幕乱码一区二区免费| 午夜精品久久久久久久| 成人黄色777网| 久久午夜国产精品| 五月婷婷色综合| 91女厕偷拍女厕偷拍高清| 精品毛片乱码1区2区3区| 亚洲成人av在线电影| 成人av在线看| 精品国产91洋老外米糕| 亚洲一二三四区| 97se狠狠狠综合亚洲狠狠| 久久久久久久av麻豆果冻| 日韩专区一卡二卡| 91福利在线播放| 亚洲欧洲美洲综合色网| 国产精品一区二区三区四区| 日韩一区二区三区三四区视频在线观看 | 中文字幕乱码久久午夜不卡 | 久久精品免费观看| 欧美精品色一区二区三区| 亚洲人成精品久久久久| 高清不卡一区二区在线| 久久夜色精品国产噜噜av| 蜜臀精品一区二区三区在线观看 | 久久国产日韩欧美精品| 制服丝袜成人动漫| 亚洲国产精品一区二区久久 | 人人狠狠综合久久亚洲| 在线观看日韩精品| 一区二区三区四区不卡视频| 色综合中文字幕| 一色屋精品亚洲香蕉网站| 春色校园综合激情亚洲| 日本一区二区高清| 国产激情视频一区二区在线观看| 精品国产乱码久久久久久闺蜜| 日本在线不卡视频一二三区| 91精品免费观看| 蜜臀av一区二区在线观看| 日韩欧美一区在线| 久久精品国产一区二区| 精品剧情v国产在线观看在线| 国产综合色在线视频区| 国产日韩欧美精品综合| 99久久精品免费看国产免费软件| 日本一区二区成人在线| 成人午夜电影网站| 亚洲视频每日更新| 欧美艳星brazzers| 日本欧美一区二区| 欧美va亚洲va香蕉在线| 国产一区91精品张津瑜| 国产精品毛片大码女人| 色88888久久久久久影院按摩 | 亚洲视频在线观看三级| 在线视频欧美精品| 男女男精品视频网| 久久久国产精品不卡| 91小视频免费观看| 亚洲第一av色| 精品久久久久久久人人人人传媒| 国产精品1024久久| 亚洲激情校园春色| 日韩欧美色电影| 99久久综合99久久综合网站| 亚洲一区在线播放| 精品黑人一区二区三区久久| 成人黄色软件下载| 天天综合日日夜夜精品| 国产午夜精品一区二区| 色网站国产精品|