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

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

?? entityenclosingmethod.java

?? Light in the box 抓取程序。 使用HttpClient
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
            return super.getRequestCharSet();        }    }    /**     * Sets length information about the request body.     *     * <p>     * Note: If you specify a content length the request is unbuffered. This     * prevents redirection and automatic retry if a request fails the first     * time. This means that the HttpClient can not perform authorization     * automatically but will throw an Exception. You will have to set the     * necessary 'Authorization' or 'Proxy-Authorization' headers manually.     * </p>     *     * @param length size in bytes or any of CONTENT_LENGTH_AUTO,     *        CONTENT_LENGTH_CHUNKED. If number of bytes or CONTENT_LENGTH_CHUNKED     *        is specified the content will not be buffered internally and the     *        Content-Length header of the request will be used. In this case     *        the user is responsible to supply the correct content length.     *        If CONTENT_LENGTH_AUTO is specified the request will be buffered     *        before it is sent over the network.     *      * @deprecated Use {@link #setContentChunked(boolean)} or      * {@link #setRequestEntity(RequestEntity)}     */    public void setRequestContentLength(long length) {        LOG.trace("enter EntityEnclosingMethod.setRequestContentLength(int)");        this.requestContentLength = length;    }    /**     * Sets whether or not the content should be chunked.     *      * @param chunked <code>true</code> if the content should be chunked     *      * @since 3.0     */    public void setContentChunked(boolean chunked) {        this.chunked = chunked;    }        /**     * Returns the length of the request body.     *     * @return number of bytes in the request body     */    protected long getRequestContentLength() {        LOG.trace("enter EntityEnclosingMethod.getRequestContentLength()");        if (!hasRequestContent()) {            return 0;        }        if (this.chunked) {            return -1;        }        if (this.requestEntity == null) {            this.requestEntity = generateRequestEntity();         }        return (this.requestEntity == null) ? 0 : this.requestEntity.getContentLength();    }    /**     * Populates the request headers map to with additional      * {@link org.apache.commons.httpclient.Header headers} to be submitted to      * the given {@link HttpConnection}.     *     * <p>     * This implementation adds tt>Content-Length</tt> or <tt>Transfer-Encoding</tt>     * headers.     * </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     *      * @since 3.0     */    protected void addRequestHeaders(HttpState state, HttpConnection conn)    throws IOException, HttpException {        LOG.trace("enter EntityEnclosingMethod.addRequestHeaders(HttpState, "            + "HttpConnection)");        super.addRequestHeaders(state, conn);        addContentLengthRequestHeader(state, conn);        // only use the content type of the request entity if it has not already been        // set manually        if (getRequestHeader("Content-Type") == null) {            RequestEntity requestEntity = getRequestEntity();            if (requestEntity != null && requestEntity.getContentType() != null) {                setRequestHeader("Content-Type", requestEntity.getContentType());            }        }    }        /**     * Generates <tt>Content-Length</tt> or <tt>Transfer-Encoding: Chunked</tt>     * request header, as long as no <tt>Content-Length</tt> request header     * already exists.     *     * @param state current state of http requests     * @param conn the connection to use for I/O     *     * @throws IOException when errors occur reading or writing to/from the     *         connection     * @throws HttpException when a recoverable error occurs     */    protected void addContentLengthRequestHeader(HttpState state,                                                 HttpConnection conn)    throws IOException, HttpException {        LOG.trace("enter EntityEnclosingMethod.addContentLengthRequestHeader("                  + "HttpState, HttpConnection)");        if ((getRequestHeader("content-length") == null)             && (getRequestHeader("Transfer-Encoding") == null)) {            long len = getRequestContentLength();            if (len < 0) {                if (getEffectiveVersion().greaterEquals(HttpVersion.HTTP_1_1)) {                    addRequestHeader("Transfer-Encoding", "chunked");                } else {                    throw new ProtocolException(getEffectiveVersion() +                         " does not support chunk encoding");                }            } else {                addRequestHeader("Content-Length", String.valueOf(len));            }        }    }    /**     * Sets the request body to be the specified inputstream.     *     * @param body Request body content as {@link java.io.InputStream}     *      * @deprecated use {@link #setRequestEntity(RequestEntity)}     */    public void setRequestBody(InputStream body) {        LOG.trace("enter EntityEnclosingMethod.setRequestBody(InputStream)");        clearRequestBody();        this.requestStream = body;    }    /**     * Sets the request body to be the specified string.     * The string will be submitted, using the encoding     * specified in the Content-Type request header.<br>     * Example: <code>setRequestHeader("Content-type", "text/xml; charset=UTF-8");</code><br>     * Would use the UTF-8 encoding.     * If no charset is specified, the      * {@link org.apache.commons.httpclient.HttpConstants#DEFAULT_CONTENT_CHARSET default}     * content encoding is used (ISO-8859-1).     *     * @param body Request body content as a string     *      * @deprecated use {@link #setRequestEntity(RequestEntity)}     */    public void setRequestBody(String body) {        LOG.trace("enter EntityEnclosingMethod.setRequestBody(String)");        clearRequestBody();        this.requestString = body;    }    /**     * Writes the request body to the given {@link HttpConnection connection}.     *     * @param state the {@link HttpState state} information associated with this method     * @param conn the {@link HttpConnection connection} used to execute     *        this HTTP method     *     * @return <tt>true</tt>     *     * @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 boolean writeRequestBody(HttpState state, HttpConnection conn)    throws IOException, HttpException {        LOG.trace(            "enter EntityEnclosingMethod.writeRequestBody(HttpState, HttpConnection)");                if (!hasRequestContent()) {            LOG.debug("Request body has not been specified");            return true;        }        if (this.requestEntity == null) {            this.requestEntity = generateRequestEntity();         }        if (requestEntity == null) {            LOG.debug("Request body is empty");            return true;        }        long contentLength = getRequestContentLength();        if ((this.repeatCount > 0) && !requestEntity.isRepeatable()) {            throw new ProtocolException(                "Unbuffered entity enclosing request can not be repeated.");        }        this.repeatCount++;        OutputStream outstream = conn.getRequestOutputStream();                if (contentLength < 0) {            outstream = new ChunkedOutputStream(outstream);        }                requestEntity.writeRequest(outstream);                // This is hardly the most elegant solution to closing chunked stream        if (outstream instanceof ChunkedOutputStream) {            ((ChunkedOutputStream) outstream).finish();        }                outstream.flush();                LOG.debug("Request body sent");        return true;    }    /**     * 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 EntityEnclosingMethod.recycle()");        clearRequestBody();        this.requestContentLength = InputStreamRequestEntity.CONTENT_LENGTH_AUTO;        this.repeatCount = 0;        this.chunked = false;        super.recycle();    }    /**     * @return Returns the requestEntity.     *      * @since 3.0     */    public RequestEntity getRequestEntity() {        return generateRequestEntity();    }    /**     * @param requestEntity The requestEntity to set.     *      * @since 3.0     */    public void setRequestEntity(RequestEntity requestEntity) {        clearRequestBody();        this.requestEntity = requestEntity;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本特黄久久久高潮| 亚洲精品中文在线| 国产精品一级黄| 久久在线免费观看| 成人午夜免费视频| 国产精品色呦呦| 色综合激情五月| 亚洲国产成人porn| 精品少妇一区二区三区| 国产成人在线视频播放| 亚洲视频在线观看三级| 欧美亚洲丝袜传媒另类| 日韩精彩视频在线观看| 久久亚洲春色中文字幕久久久| 韩国v欧美v日本v亚洲v| 国产精品久久久久四虎| 色婷婷亚洲综合| 日韩av一区二区在线影视| 精品国产不卡一区二区三区| 不卡在线观看av| 亚洲在线免费播放| 日韩欧美中文字幕精品| 成熟亚洲日本毛茸茸凸凹| 亚洲激情一二三区| 精品久久一区二区三区| 91丨porny丨首页| 日韩福利电影在线观看| 国产日韩欧美精品电影三级在线| 色婷婷亚洲精品| 国内精品写真在线观看| 亚洲男同1069视频| 日韩午夜电影在线观看| 成+人+亚洲+综合天堂| 奇米一区二区三区| 亚洲丝袜美腿综合| 26uuu精品一区二区| 欧美怡红院视频| 国产成人综合在线| 欧美aaa在线| 亚洲免费观看高清完整| 精品国产凹凸成av人网站| 在线一区二区视频| 高清成人在线观看| 日本大胆欧美人术艺术动态| 亚洲美女在线国产| 国产午夜亚洲精品午夜鲁丝片| 欧美日韩一区二区三区高清| 99久久99久久免费精品蜜臀| 精品一区二区免费视频| 日韩av电影天堂| 亚洲日本在线a| 久久蜜桃一区二区| 欧美一区二区久久| 欧美影视一区在线| 91原创在线视频| 高清在线观看日韩| 激情综合亚洲精品| 日韩高清在线电影| 婷婷一区二区三区| 亚洲国产精品人人做人人爽| 中文字幕第一区综合| 精品国产乱码久久久久久闺蜜| 欧美日产在线观看| 在线观看视频一区| 欧美中文字幕亚洲一区二区va在线 | 精品国产一区二区三区四区四| 欧美日韩国产中文| 欧美三级欧美一级| 色琪琪一区二区三区亚洲区| av一区二区三区| 成人综合在线视频| 高清久久久久久| 成人99免费视频| 成人黄动漫网站免费app| 狠狠狠色丁香婷婷综合久久五月| 亚洲国产一区二区三区| 亚洲自拍偷拍九九九| 亚洲激情自拍偷拍| 亚洲bt欧美bt精品| 午夜精品影院在线观看| 日日摸夜夜添夜夜添亚洲女人| 日日摸夜夜添夜夜添精品视频| 天天综合网 天天综合色| 日韩黄色免费网站| 另类小说综合欧美亚洲| 黑人巨大精品欧美一区| 国产精品白丝jk黑袜喷水| 成人天堂资源www在线| 成人毛片在线观看| 91官网在线观看| 欧美人体做爰大胆视频| 日韩视频在线一区二区| 久久综合久久鬼色中文字| 国产欧美日韩精品一区| 国产精品不卡一区二区三区| 亚洲精品欧美激情| 日本不卡在线视频| 激情成人午夜视频| 暴力调教一区二区三区| 欧日韩精品视频| 日韩欧美国产wwwww| 久久美女艺术照精彩视频福利播放 | 国产亚洲成年网址在线观看| 亚洲国产经典视频| 亚洲最大色网站| 久草这里只有精品视频| 福利视频网站一区二区三区| 91成人国产精品| 日韩欧美色综合网站| 国产精品高潮呻吟| 性感美女极品91精品| 韩国三级中文字幕hd久久精品| 高清不卡一区二区在线| 欧美日韩国产一级| 26uuu欧美| 亚洲美女精品一区| 久久不见久久见免费视频7| 不卡电影一区二区三区| 欧美高清视频一二三区 | 久久不见久久见中文字幕免费| 国产91精品一区二区麻豆网站 | 欧美日韩国产高清一区二区| 久久香蕉国产线看观看99| 亚洲精品亚洲人成人网在线播放| 麻豆成人久久精品二区三区红| 成人午夜视频网站| 日韩欧美黄色影院| 亚洲伊人伊色伊影伊综合网| 国产一区二区三区久久久| 欧美日韩一区二区三区不卡 | av网站免费线看精品| 欧美一区二区观看视频| 中文字幕一区二| 久久97超碰色| 色婷婷综合久久久中文一区二区 | 日本欧美久久久久免费播放网| 风流少妇一区二区| 欧美α欧美αv大片| 国内精品伊人久久久久av影院| 色综合久久88色综合天天| 国产亚洲精品7777| 麻豆传媒一区二区三区| 欧美日韩精品免费| 亚洲欧美日韩一区二区| 成人av资源网站| 国产亚洲成aⅴ人片在线观看| 日韩成人一级大片| 欧美日韩国产精品自在自线| 国产精品女上位| 国产精品资源在线观看| 日韩视频一区二区| 日本大胆欧美人术艺术动态 | 91丨porny丨蝌蚪视频| 欧美激情综合在线| 国产一区二区影院| 日韩免费在线观看| 午夜亚洲福利老司机| 欧美色爱综合网| 亚洲嫩草精品久久| 一本色道久久综合狠狠躁的推荐| 中文字幕乱码日本亚洲一区二区 | 亚洲人快播电影网| 91在线高清观看| 亚洲欧美日韩一区二区| 色综合久久久久综合体| 亚洲人一二三区| 一本色道久久综合狠狠躁的推荐| 综合激情成人伊人| 91九色最新地址| 亚洲狠狠丁香婷婷综合久久久| 色婷婷av一区二区三区之一色屋| 亚洲日本va午夜在线影院| 91在线观看下载| 亚洲欧美经典视频| 在线精品观看国产| 天堂av在线一区| 欧美一区日本一区韩国一区| 丝袜美腿一区二区三区| 日韩精品一区二区在线观看| 美女在线视频一区| 久久人人超碰精品| 国产99久久精品| 亚洲女性喷水在线观看一区| 欧美影院精品一区| 日本不卡不码高清免费观看 | 欧美激情在线观看视频免费| 成人精品视频一区| 亚洲乱码中文字幕| 欧日韩精品视频| 麻豆精品精品国产自在97香蕉| 精品久久久久久久人人人人传媒 | 日本美女一区二区三区视频| 精品国产一区二区三区四区四 | 91黄色小视频| 日韩精品亚洲专区| 国产精品视频一二三| 91久久精品国产91性色tv| 免费观看日韩av| 欧美激情一区二区三区不卡| 欧美在线不卡一区|