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

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

?? http.tcl

?? Linux下的MSN聊天程序源碼
?? TCL
字號:
# http.tcl - Copyright (C) 2001 Pat Thoyts <patthoyts@users.sourceforge.net>## The SOAP HTTP Transport.## -------------------------------------------------------------------------# This software is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY# or FITNESS FOR A PARTICULAR PURPOSE.  See the accompanying file `LICENSE'# for more details.# -------------------------------------------------------------------------package require http 2;                 # tclnamespace eval ::SOAP::Transport::http {    variable version 1.0.1    variable rcsid {$Id: http.tcl 6619 2006-05-15 20:43:27Z vivia $}    variable options    SOAP::register http [namespace current]    # Initialize the transport options.    if {![info exists options]} {        array set options {            headers  {}            proxy    {}            progress {}            timeout  0        }    }    # Declare the additional SOAP method options provided by this transport.    variable method:options [list \        httpheaders \        timeout     \    ]        # Provide missing code for http < 2.3    if {[info proc ::http::ncode] == {}} {        namespace eval ::http {            proc ncode {token} {                return [lindex [split [code $token]] 1]            }        }    }}# -------------------------------------------------------------------------# Description:#  Implement the additional SOAP method configuration options provide#  for this transport.# Notes:#  -httpheaders - additional HTTP headers may be defined for specific#       SOAP methods. Argument should be a two element list made of#       the header name and value eg: [list Cookie $cookiedata]# -timeout - the method can override the transport defined http timeout.#       Set to {} to use the transport timeout, 0 for infinity.proc ::SOAP::Transport::http::method:configure {procVarName opt value} {    upvar $procVarName procvar    switch -glob -- $opt {        -httpheaders {            set procvar(httpheaders) $value        }        -timeout {            set procvar(timeout) $value        }        default {            # not reached.            return -code error "unknown option \"$opt\""        }    }}# -------------------------------------------------------------------------# Description:#  Configure any http transport specific settings.#proc ::SOAP::Transport::http::configure {args} {    variable options    if {[llength $args] == 0} {        set r {}        foreach {opt value} [array get options] {            lappend r "-$opt" $value        }        return $r    }    foreach {opt value} $args {        switch -- $opt {            -proxy - -timeout -  -progress {                set options([string trimleft $opt -]) $value            }            -headers {                set options(headers) $value            }            default {                return -code error "invalid option \"$opt\":\                      must be \"-proxy host:port\" or \"-headers list\""            }        }    }    return {}}# -------------------------------------------------------------------------# Description:#   Perform a remote procedure call using HTTP as the transport protocol.#   This uses the Tcl http package to do the work. If the SOAP method has#   the -command option set to something then the call is made #   asynchronously and the result data passed to the users callback#   procedure.#   If you have an HTTP proxy to deal with then you should set up the #   SOAP::Transport::http::filter procedure and proxy variable to suit.#   This can be done using SOAP::proxyconfig.# Parameters:#   procVarName - the name of the SOAP config array for this method.#   url         - the SOAP endpoint URL#   request     - the XML data making up the SOAP request# Result:#   The request data is POSTed to the SOAP provider via HTTP using any#   configured proxy host. If the HTTP returns an error code then an error#   is raised otherwise the reply data is returned. If the method has#   been configured to be asynchronous then the async handler is called#   once the http request completes.#proc ::SOAP::Transport::http::xfer { procVarName url request } {    variable options    upvar $procVarName procvar        # Get the SOAP package version    # FRINK: nocheck    set version [set [namespace parent [namespace parent]]::version]        # setup the HTTP POST request    ::http::config -useragent "TclSOAP/$version ($::tcl_platform(os))"        # If a proxy was configured, use it.    if { [info exists options(proxy)] && $options(proxy) != {} } {        ::http::config -proxyfilter [namespace origin filter]    }        # Check for an HTTP progress callback.    set local_progress {}    if { [info exists options(progress)] && $options(progress) != {} } {        set local_progress "-progress [list $options(progress)]"    }        # Check for a timeout. Method timeout overrides transport timeout.    set timeout $options(timeout)    if {$procvar(timeout) != {}} {        set timeout $procvar(timeout)    }    # There may be http headers configured. eg: for proxy servers    # eg: SOAP::configure -transport http -headers     #    [list "Proxy-Authorization" [basic_authorization]]    set local_headers {}    if {[info exists options(headers)]} {        set local_headers $options(headers)    }    if {[info exists procvar(httpheaders)]} {        set local_headers [concat $local_headers $procvar(httpheaders)]    }        # Add mandatory SOAPAction header (SOAP 1.1). This may be empty otherwise    # must be in quotes.    set action $procvar(action)    if { $action != {} } {         set action [string trim $action "\""]        set action "\"$action\""        lappend local_headers "SOAPAction" $action    }        # cleanup the last http request    if {[info exists procvar(http)] && $procvar(http) != {}} {        catch {::http::cleanup $procvar(http)}    }        # Check for an asynchronous handler and perform the transfer.    # If async - return immediately.    set command {}    if {$procvar(command) != {}} {        set command "-command {[namespace current]::asynchronous $procVarName}"    }        set token [eval ::http::geturl_followRedirects [list $url] \                   -headers [list $local_headers] \                   -type text/xml \                   -timeout $timeout \                   -query [list $request] \                   $local_progress $command]        # store the http structure reference for possible access later.    set procvar(http) $token        if { $command != {}} {        return {}     }    log::log debug "[::http::status $token] - [::http::code $token]"    # Check for Proxy Authentication requests and handle it.    if {[::http::ncode $token] == 407} {        SOAP::proxyconfig        return [xfer $procVarName $url $request]    }    # Some other sort of error ...    switch -exact -- [set status [::http::status $token]] {        timeout {            return -code error "error: SOAP http transport timed out\                after $timeout ms"        }        ok {        }        default {            return -code error  "SOAP transport error:\                token $token status is \"$status\" and HTTP result code is\                \"[::http::code $token]\""        }    }    return [::http::data $token]}# this proc contributed by [Donal Fellows]proc ::http::geturl_followRedirects {url args} {    set limit 10    while {$limit > 0} {        set token [eval [list ::http::geturl $url] $args]        switch -glob -- [ncode $token] {            30[1237] {                incr limit -1                ### redirect - see below ###             }            default  { return $token }        }        upvar \#0 $token state        array set meta $state(meta)        if {![info exist meta(Location)]} {            return $token        }        set url $meta(Location)        unset meta    }    return -code error "maximum relocation depth reached: site loop?"}# -------------------------------------------------------------------------# Description:#    Asynchronous http handler command.proc ::SOAP::Transport::http::asynchronous {procVarName token} {    upvar $procVarName procvar    if {[catch {asynchronous2 $procVarName $token} msg]} {        if {$procvar(errorCommand) != {}} {            set errorCommand $procvar(errorCommand)            if {[catch {eval $errorCommand [list $msg]} result]} {                bgerror $result            }        } else {            bgerror $msg        }    }    return $msg}proc ::SOAP::Transport::http::asynchronous2 {procVarName token} {    upvar $procVarName procvar    set procName [lindex [split $procVarName {_}] end]    # Some other sort of error ...    if {[::http::status $token] != "ok"} {         return -code error "SOAP transport error: \"[::http::code $token]\""    }    set reply [::http::data $token]    # Call the second part of invoke to unwrap the packet data.    set reply [SOAP::invoke2 $procVarName $reply]    # Call the users handler.    set command $procvar(command)    return [eval $command [list $reply]]}# -------------------------------------------------------------------------# Description:#   Handle a proxy server. If the -proxy options is set then this is used#   to override the http package configuration.# Notes:#   Needs expansion to use a list of non-proxied sites or a list of#   {regexp proxy} or something.#   The proxy variable in this namespace is set up by #   SOAP::configure -transport http.#proc ::SOAP::Transport::http::filter {host} {    variable options    if { [string match "localhost*" $host] \             || [string match "127.*" $host] } {        return {}    }    return [lrange [split $options(proxy) {:}] 0 1]}# -------------------------------------------------------------------------# Description:#   Support asynchronous transactions and permit waiting for completed#   calls.# Parameters:#proc ::SOAP::Transport::http::wait {procVarName} {    upvar $procVarName procvar    http::wait $procvar(http)}# -------------------------------------------------------------------------# Description:#  Called to release any retained resources from a SOAP method. For the#  http transport this is just the http token.# Parameters:#  methodVarName - the name of the SOAP method configuration array#proc ::SOAP::Transport::http::method:destroy {methodVarName} {    upvar $methodVarName procvar    if {[info exists procvar(http)] && $procvar(http) != {}} {        catch {::http::cleanup $procvar(http)}    }}# -------------------------------------------------------------------------proc ::SOAP::Transport::http::dump {methodName type} {    SOAP::cget $methodName proxy    if {[catch {SOAP::cget $methodName http} token]} {        set token {}    }    if { $token == {} } {        return -code error "cannot dump:\            no information is available for \"$methodName\""    }    set result {}    switch -glob -- $type {        -meta   {set result [lindex [array get $token meta] 1]}        -qu*    -        -req*   {set result [lindex [array get $token -query] 1]}        -rep*   {set result [::http::data $token]}        default {            return -code error "unrecognised option: must be one of \                    \"-meta\", \"-request\" or \"-reply\""        }    }    return $result}# -------------------------------------------------------------------------package provide SOAP::http $::SOAP::Transport::http::version# -------------------------------------------------------------------------# Local variables:#    mode: tcl#    indent-tabs-mode: nil# End:

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲自拍偷拍欧美| 国产午夜精品久久久久久久| 成人av在线播放网址| 经典一区二区三区| 日本麻豆一区二区三区视频| 午夜电影网一区| 亚洲超碰97人人做人人爱| 一区二区三区自拍| 一区二区三区欧美| 亚洲最快最全在线视频| 亚洲黄色免费网站| 性久久久久久久久久久久| 亚洲成人动漫一区| 麻豆91在线播放免费| 国产乱人伦偷精品视频不卡| 国产成人aaaa| 91在线精品秘密一区二区| 色一情一乱一乱一91av| 91国偷自产一区二区三区成为亚洲经典 | 精品理论电影在线观看| 精品国产精品网麻豆系列| 久久亚洲综合色一区二区三区| 久久久精品免费免费| 国产精品久久久久久久久久免费看| 亚洲欧洲日产国产综合网| 亚洲一区二区三区美女| 麻豆精品国产91久久久久久| 国产精品一二三区在线| 91视频观看视频| 欧美一区午夜精品| 国产欧美日韩一区二区三区在线观看| 亚洲视频综合在线| 另类欧美日韩国产在线| 成人h版在线观看| 欧美日韩午夜在线| 国产拍揄自揄精品视频麻豆| 亚洲免费在线观看| 精品中文字幕一区二区| 色综合久久久久综合体| 日韩你懂的在线播放| 国产精品久久网站| 免费在线欧美视频| 99国内精品久久| 精品乱人伦一区二区三区| 亚洲精品一二三| 国产成人高清在线| 欧美一区二区三区免费大片| 国产精品国产三级国产aⅴ中文| 午夜精品久久久久久久99樱桃| 国产成人精品aa毛片| 日韩一区二区三区四区五区六区 | 色综合色综合色综合| 日韩小视频在线观看专区| 亚洲欧美日韩中文字幕一区二区三区| 蜜臀久久99精品久久久久宅男| aaa国产一区| 欧美国产日韩一二三区| 久久国产婷婷国产香蕉| 欧美日韩亚洲综合在线| 亚洲欧美激情小说另类| 成人av资源在线| 欧美激情中文字幕一区二区| 美女免费视频一区| 91精品国产福利在线观看 | 日韩午夜激情av| 亚洲午夜精品在线| 在线看日本不卡| 亚洲另类一区二区| 成人激情图片网| 中文字幕欧美日本乱码一线二线| 精品一区二区三区香蕉蜜桃| 欧美精三区欧美精三区| 亚洲小说春色综合另类电影| 正在播放亚洲一区| 亚洲已满18点击进入久久| 色欧美片视频在线观看| 亚洲男人的天堂一区二区| av一区二区三区四区| 亚洲国产精品国自产拍av| 粉嫩绯色av一区二区在线观看| 国产欧美一区二区精品忘忧草| 国内国产精品久久| 久久精品综合网| 成人高清视频免费观看| 亚洲天堂2016| 欧美日韩精品一区二区天天拍小说| 亚洲成av人在线观看| 欧美日韩中文国产| 日本中文一区二区三区| 日韩精品一区二区三区四区视频 | 国产成都精品91一区二区三| 久久精品日韩一区二区三区| 国产91富婆露脸刺激对白| 一区在线观看免费| 欧美午夜在线一二页| 免费一级片91| 国产亚洲精品超碰| 色菇凉天天综合网| 蜜桃在线一区二区三区| 久久精品免费在线观看| 色婷婷久久99综合精品jk白丝| 亚洲国产成人高清精品| 亚洲精品一线二线三线无人区| 成人网在线免费视频| 一区二区三区精品在线| 日韩精品一区二区三区四区视频| 成人午夜精品在线| 亚洲成人一区在线| 久久久精品人体av艺术| 欧美日韩一本到| 国产91露脸合集magnet| 亚洲一区二区三区四区不卡| 日韩亚洲欧美在线| 99视频精品在线| 奇米色777欧美一区二区| 国产片一区二区| 6080日韩午夜伦伦午夜伦| 夫妻av一区二区| 亚洲成人黄色影院| 国产精品高潮久久久久无| 91精品国产欧美一区二区| 99精品国产一区二区三区不卡| 日韩vs国产vs欧美| 亚洲精品国产精品乱码不99| 精品久久免费看| 欧美精品高清视频| 色综合天天天天做夜夜夜夜做| 黑人巨大精品欧美一区| 午夜成人在线视频| 一区二区三区资源| 国产精品免费久久| 久久综合久久综合久久| 777亚洲妇女| 欧美影视一区二区三区| av中文字幕一区| 国产福利91精品| 国产在线播放一区二区三区| 免费日韩伦理电影| 午夜成人免费视频| 亚洲一区二区三区精品在线| 亚洲欧美一区二区三区久本道91| 精品国产乱码久久久久久老虎| 欧美日韩成人综合| 欧美日韩一区二区电影| 在线免费观看成人短视频| 色婷婷综合视频在线观看| 91小视频免费看| 99久久精品99国产精品| 成人动漫中文字幕| 99久久精品国产精品久久| 不卡一卡二卡三乱码免费网站| 国产suv精品一区二区三区| 国产综合色在线| 国产成都精品91一区二区三| 夫妻av一区二区| www.欧美精品一二区| 99国内精品久久| 欧美综合久久久| 欧美日韩电影在线播放| 制服丝袜中文字幕一区| 精品少妇一区二区三区视频免付费| 欧美一级一级性生活免费录像| 欧美精品欧美精品系列| 欧美一区日韩一区| 精品成a人在线观看| 中文字幕欧美日本乱码一线二线| 国产性做久久久久久| 国产精品福利av| 亚洲综合视频在线| 日本不卡在线视频| 国产精品资源网站| 99国产精品一区| 欧美日韩精品欧美日韩精品| 91精品国产综合久久久久久漫画| 精品国产伦一区二区三区观看方式| 26uuu欧美日本| 亚洲天堂福利av| 日韩电影在线一区二区三区| 国内久久婷婷综合| 91视频在线观看| 欧美一级xxx| 中文字幕av一区二区三区免费看 | 精品国偷自产国产一区| 国产亚洲一区二区在线观看| 1区2区3区精品视频| 午夜精品福利在线| 国产福利电影一区二区三区| 色视频欧美一区二区三区| 欧美一区二区三区视频| 国产精品无码永久免费888| 亚洲狠狠丁香婷婷综合久久久| 奇米精品一区二区三区四区 | 亚洲成精国产精品女| 七七婷婷婷婷精品国产| 国产suv精品一区二区三区| 欧美午夜影院一区| 中文字幕 久热精品 视频在线| 亚洲国产美女搞黄色| 国产精品一级在线| 欧美一区二区三区的|