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

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

?? nusoap.php

?? 一個非常不錯的搜索程序,值的收藏! 用.NET開發
?? PHP
?? 第 1 頁 / 共 5 頁
字號:
		}

		// munge host if using OpenSSL
		if ($this->scheme == 'ssl') {
			$host = 'ssl://' . $this->host;
		} else {
			$host = $this->host;
		}
		$this->debug('calling fsockopen with host ' . $host);

		// open socket
		if($connection_timeout > 0){
			$this->fp = fsockopen( $host, $this->port, $this->errno, $this->error_str, $connection_timeout);
		} else {
			$this->fp = fsockopen( $host, $this->port, $this->errno, $this->error_str);
		}
		
		// test pointer
		if(!$this->fp) {
			$this->debug('Couldn\'t open socket connection to server '.$this->url.', Error ('.$this->errno.'): '.$this->error_str);
			$this->setError('Couldn\'t open socket connection to server: '.$this->url.', Error ('.$this->errno.'): '.$this->error_str);
			return false;
		}
		
		// set response timeout
		socket_set_timeout( $this->fp, $response_timeout);

		$this->debug('socket connected');
		return true;
	  } else if ($this->scheme == 'https') {
		if (!extension_loaded('curl')) {
			$this->setError('CURL Extension, or OpenSSL extension w/ PHP version >= 4.3 is required for HTTPS');
			return false;
		}
		$this->debug('connect using https');
		// init CURL
		$this->ch = curl_init();
		// set url
		$hostURL = ($this->port != '') ? "https://$this->host:$this->port" : "https://$this->host";
		// add path
		$hostURL .= $this->path;
		curl_setopt($this->ch, CURLOPT_URL, $hostURL);
		// ask for headers in the response output
		curl_setopt($this->ch, CURLOPT_HEADER, 1);
		// ask for the response output as the return value
		curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, 1);
		// encode
		// We manage this ourselves through headers and encoding
//		if(function_exists('gzuncompress')){
//			curl_setopt($this->ch, CURLOPT_ENCODING, 'deflate');
//		}
		// persistent connection
		if ($this->persistentConnection) {
			// The way we send data, we cannot use persistent connections, since
			// there will be some "junk" at the end of our request.
			//curl_setopt($this->ch, CURL_HTTP_VERSION_1_1, true);
			$this->persistentConnection = false;
			$this->outgoing_headers['Connection'] = 'close';
		}
		// set timeout (NOTE: cURL does not have separate connection and response timeouts)
		if ($connection_timeout != 0) {
			curl_setopt($this->ch, CURLOPT_TIMEOUT, $connection_timeout);
		}

		// recent versions of cURL turn on peer/host checking by default,
		// while PHP binaries are not compiled with a default location for the
		// CA cert bundle, so disable peer/host checking.
//curl_setopt($this->ch, CURLOPT_CAINFO, 'f:\php-4.3.2-win32\extensions\curl-ca-bundle.crt');		
		curl_setopt($this->ch, CURLOPT_SSL_VERIFYPEER, 0);
		curl_setopt($this->ch, CURLOPT_SSL_VERIFYHOST, 0);

		/*
			TODO: support client certificates (thanks Tobias Boes)
        curl_setopt($this->ch, CURLOPT_CAINFO, '$pathToPemFiles/rootca.pem');
        curl_setopt($this->ch, CURLOPT_SSL_VERIFYPEER, 1);
        curl_setopt($this->ch, CURLOPT_SSL_VERIFYHOST, 1);
        curl_setopt($this->ch, CURLOPT_SSLCERT, '$pathToPemFiles/mycert.pem');
        curl_setopt($this->ch, CURLOPT_SSLKEY, '$pathToPemFiles/mykey.pem');
		*/
		$this->debug('cURL connection set up');
		return true;
	  } else {
		$this->setError('Unknown scheme ' . $this->scheme);
		$this->debug('Unknown scheme ' . $this->scheme);
		return false;
	  }
	}
	
	/**
	* send the SOAP message via HTTP
	*
	* @param    string $data message data
	* @param    integer $timeout set connection timeout in seconds
	* @param	integer $response_timeout set response timeout in seconds
	* @return	string data
	* @access   public
	*/
	function send($data, $timeout=0, $response_timeout=30) {
		
		$this->debug('entered send() with data of length: '.strlen($data));

		$this->tryagain = true;
		$tries = 0;
		while ($this->tryagain) {
			$this->tryagain = false;
			if ($tries++ < 2) {
				// make connnection
				if (!$this->connect($timeout, $response_timeout)){
					return false;
				}
				
				// send request
				if (!$this->sendRequest($data)){
					return false;
				}
				
				// get response
				$respdata = $this->getResponse();
			} else {
				$this->setError('Too many tries to get an OK response');
			}
		}		
		$this->debug('end of send()');
		return $respdata;
	}


	/**
	* send the SOAP message via HTTPS 1.0 using CURL
	*
	* @param    string $msg message data
	* @param    integer $timeout set connection timeout in seconds
	* @param	integer $response_timeout set response timeout in seconds
	* @return	string data
	* @access   public
	*/
	function sendHTTPS($data, $timeout=0, $response_timeout=30) {
		return $this->send($data, $timeout, $response_timeout);
	}
	
	/**
	* if authenticating, set user credentials here
	*
	* @param    string $username
	* @param    string $password
	* @param	string $authtype
	* @param	array $digestRequest
	* @access   public
	*/
	function setCredentials($username, $password, $authtype = 'basic', $digestRequest = array()) {
		global $_SERVER;

		// cf. RFC 2617
		if ($authtype == 'basic') {
			$this->outgoing_headers['Authorization'] = 'Basic '.base64_encode($username.':'.$password);
		} elseif ($authtype == 'digest') {
			if (isset($digestRequest['nonce'])) {
				$digestRequest['nc'] = isset($digestRequest['nc']) ? $digestRequest['nc']++ : 1;
				
				// calculate the Digest hashes (calculate code based on digest implementation found at: http://www.rassoc.com/gregr/weblog/stories/2002/07/09/webServicesSecurityHttpDigestAuthenticationWithoutActiveDirectory.html)
	
				// A1 = unq(username-value) ":" unq(realm-value) ":" passwd
				$A1 = $username. ':' . $digestRequest['realm'] . ':' . $password;
	
				// H(A1) = MD5(A1)
				$HA1 = md5($A1);
	
				// A2 = Method ":" digest-uri-value
				$A2 = 'POST:' . $this->uri;
	
				// H(A2)
				$HA2 =  md5($A2);
	
				// KD(secret, data) = H(concat(secret, ":", data))
				// if qop == auth:
				// request-digest  = <"> < KD ( H(A1),     unq(nonce-value)
				//                              ":" nc-value
				//                              ":" unq(cnonce-value)
				//                              ":" unq(qop-value)
				//                              ":" H(A2)
				//                            ) <">
				// if qop is missing,
				// request-digest  = <"> < KD ( H(A1), unq(nonce-value) ":" H(A2) ) > <">
	
				$unhashedDigest = '';
				$nonce = isset($digestRequest['nonce']) ? $digestRequest['nonce'] : '';
				$cnonce = $nonce;
				if ($digestRequest['qop'] != '') {
					$unhashedDigest = $HA1 . ':' . $nonce . ':' . sprintf("%08d", $digestRequest['nc']) . ':' . $cnonce . ':' . $digestRequest['qop'] . ':' . $HA2;
				} else {
					$unhashedDigest = $HA1 . ':' . $nonce . ':' . $HA2;
				}
	
				$hashedDigest = md5($unhashedDigest);
	
				$this->outgoing_headers['Authorization'] = 'Digest username="' . $username . '", realm="' . $digestRequest['realm'] . '", nonce="' . $nonce . '", uri="' . $this->uri . '", cnonce="' . $cnonce . '", nc=' . sprintf("%08x", $digestRequest['nc']) . ', qop="' . $digestRequest['qop'] . '", response="' . $hashedDigest . '"';
			}
		}
		$this->username = $username;
		$this->password = $password;
		$this->authtype = $authtype;
		$this->digestRequest = $digestRequest;
	}
	
	/**
	* set the soapaction value
	*
	* @param    string $soapaction
	* @access   public
	*/
	function setSOAPAction($soapaction) {
		$this->outgoing_headers['SOAPAction'] = '"' . $soapaction . '"';
	}
	
	/**
	* use http encoding
	*
	* @param    string $enc encoding style. supported values: gzip, deflate, or both
	* @access   public
	*/
	function setEncoding($enc='gzip, deflate'){
		$this->protocol_version = '1.1';
		$this->outgoing_headers['Accept-Encoding'] = $enc;
		$this->outgoing_headers['Connection'] = 'close';
		$this->persistentConnection = false;
		set_magic_quotes_runtime(0);
		// deprecated
		$this->encoding = $enc;
	}
	
	/**
	* set proxy info here
	*
	* @param    string $proxyhost
	* @param    string $proxyport
	* @param	string $proxyusername
	* @param	string $proxypassword
	* @access   public
	*/
	function setProxy($proxyhost, $proxyport, $proxyusername = '', $proxypassword = '') {
		$this->uri = $this->url;
		$this->host = $proxyhost;
		$this->port = $proxyport;
		if ($proxyusername != '' && $proxypassword != '') {
			$this->outgoing_headers['Proxy-Authorization'] = ' Basic '.base64_encode($proxyusername.':'.$proxypassword);
		}
	}
	
	/**
	* decode a string that is encoded w/ "chunked' transfer encoding
 	* as defined in RFC2068 19.4.6
	*
	* @param    string $buffer
	* @param    string $lb
	* @returns	string
	* @access   public
	*/
	function decodeChunked($buffer, $lb){
		// length := 0
		$length = 0;
		$new = '';
		
		// read chunk-size, chunk-extension (if any) and CRLF
		// get the position of the linebreak
		$chunkend = strpos($buffer, $lb);
		if ($chunkend == FALSE) {
			$this->debug('no linebreak found in decodeChunked');
			return $new;
		}
		$temp = substr($buffer,0,$chunkend);
		$chunk_size = hexdec( trim($temp) );
		$chunkstart = $chunkend + strlen($lb);
		// while (chunk-size > 0) {
		while ($chunk_size > 0) {
			$this->debug("chunkstart: $chunkstart chunk_size: $chunk_size");
			$chunkend = strpos( $buffer, $lb, $chunkstart + $chunk_size);
		  	
			// Just in case we got a broken connection
		  	if ($chunkend == FALSE) {
		  	    $chunk = substr($buffer,$chunkstart);
				// append chunk-data to entity-body
		    	$new .= $chunk;
		  	    $length += strlen($chunk);
		  	    break;
			}
			
		  	// read chunk-data and CRLF
		  	$chunk = substr($buffer,$chunkstart,$chunkend-$chunkstart);
		  	// append chunk-data to entity-body
		  	$new .= $chunk;
		  	// length := length + chunk-size
		  	$length += strlen($chunk);
		  	// read chunk-size and CRLF
		  	$chunkstart = $chunkend + strlen($lb);
			
		  	$chunkend = strpos($buffer, $lb, $chunkstart) + strlen($lb);
			if ($chunkend == FALSE) {
				break; //Just in case we got a broken connection
			}
			$temp = substr($buffer,$chunkstart,$chunkend-$chunkstart);
			$chunk_size = hexdec( trim($temp) );
			$chunkstart = $chunkend;
		}
		return $new;
	}
	
	/*
	 *	Writes payload, including HTTP headers, to $this->outgoing_payload.
	 */
	function buildPayload($data) {
		// add content-length header
		$this->outgoing_headers['Content-Length'] = strlen($data);
		
		// start building outgoing payload:
		$this->outgoing_payload = "$this->request_method $this->uri HTTP/$this->protocol_version\r\n";

		// loop thru headers, serializing
		foreach($this->outgoing_headers as $k => $v){
			$this->outgoing_payload .= $k.': '.$v."\r\n";
		}
		
		// header/body separator
		$this->outgoing_payload .= "\r\n";
		
		// add data
		$this->outgoing_payload .= $data;
	}

	function sendRequest($data){
		// build payload
		$this->buildPayload($data);

	  if ($this->scheme == 'http' || $this->scheme == 'ssl') {
		// send payload
		if(!fputs($this->fp, $this->outgoing_payload, strlen($this->outgoing_payload))) {
			$this->setError('couldn\'t write message data to socket');
			$this->debug('couldn\'t write message data to socket');
			return false;
		}
		$this->debug('wrote data to socket, length = ' . strlen($this->outgoing_payload));
		return true;
	  } else if ($this->scheme == 'https') {
		// set payload
		// TODO: cURL does say this should only be the verb, and in fact it
		// turns out that the URI and HTTP version are appended to this, which
		// some servers refuse to work with
		//curl_setopt($this->ch, CURLOPT_CUSTOMREQUEST, $this->outgoing_payload);
		foreach($this->outgoing_headers as $k => $v){
			$curl_headers[] = "$k: $v";
		}
		curl_setopt($this->ch, CURLOPT_HTTPHEADER, $curl_headers);
		if ($this->request_method == "POST") {
	  		curl_setopt($this->ch, CURLOPT_POST, 1);
	  		curl_setopt($this->ch, CURLOPT_POSTFIELDS, $data);
	  	} else {
	  	}
		$this->debug('set cURL payload');
		return true;
	  }
	}
	
	function getResponse(){
		$this->incoming_payload = '';
	    
	  if ($this->scheme == 'http' || $this->scheme == 'ssl') {
	    // loop until headers have been retrieved
	    $data = '';
	    while (!isset($lb)){

			// We might EOF during header read.
			if(feof($this->fp)) {
				$this->incoming_payload = $data;
				$this->debug('found no headers before EOF after length ' . strlen($data));
				$this->debug("received before EOF:\n" . $data);
				$this->setError('server failed to send headers');
				return false;
			}

			$data .= fgets($this->fp, 256);
			$pos = strpos($data,"\r\n\r\n");
			if($pos > 1){
				$lb = "\r\n";
			} else {
				$pos = strpos($data,"\n\n");
				if($pos > 1){
					$lb = "\n";
				}
			}
			// remove 100 header
			if(isset($lb) && ereg('^HTTP/1.1 100',$data)){
				unset($lb);
				$data = '';
			}//
		}
		// store header data
		$this->incoming_payload .= $data;
		$this->debug('found end of headers after length ' . strlen($data));
		// process headers
		$header_data = trim(substr($data,0,$pos));
		$header_array = explode($lb,$header_data);
		foreach($header_array as $header_line){
			$arr = explode(':',$header_line, 2);
			if(count($arr) > 1){
				$header_name = strtolower(trim($arr[0]));
				$this->inc

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美性做爰猛烈叫床潮| 顶级嫩模精品视频在线看| 日韩精品电影在线| 国产一区二区在线影院| 91极品美女在线| 久久久国产一区二区三区四区小说| 亚洲欧洲综合另类在线| 狠狠色综合播放一区二区| caoporen国产精品视频| 成人激情图片网| 国产精品麻豆视频| 亚洲人吸女人奶水| 国产剧情一区二区| 日韩一卡二卡三卡四卡| 一区二区免费视频| 成人禁用看黄a在线| 欧美精品一区二区三区视频| 婷婷开心久久网| 91福利在线免费观看| 国产精品美女久久福利网站| 国产乱子伦视频一区二区三区| 欧美高清www午色夜在线视频| 国产精品成人一区二区艾草 | 国产精品久久三| 久久99精品国产麻豆婷婷| 欧美美女一区二区三区| 亚洲国产精品久久久久婷婷884| 99久久精品国产毛片| 91在线观看成人| av高清久久久| 日本一区二区三区四区在线视频| 免费高清在线视频一区·| 欧美理论电影在线| 免费人成精品欧美精品| 欧美日韩国产精选| 亚洲自拍另类综合| 欧美色偷偷大香| 午夜精品福利视频网站| 欧美疯狂性受xxxxx喷水图片| 性做久久久久久| 欧美日韩二区三区| 视频在线在亚洲| 日韩欧美一二区| 激情图片小说一区| 国产欧美日韩另类一区| 成人免费视频一区二区| 中文字幕在线一区免费| 一本到一区二区三区| 一级日本不卡的影视| 欧洲精品中文字幕| 日本91福利区| 亚洲精品一线二线三线| 成人激情免费网站| 亚洲一本大道在线| 欧美成va人片在线观看| 国产a精品视频| 亚洲久草在线视频| 日韩欧美在线一区二区三区| 国产一区二区三区蝌蚪| 国产精品久久久久精k8| 欧美日韩一二三区| 激情小说亚洲一区| 亚洲欧美视频在线观看| 欧美精品v国产精品v日韩精品| 久久激情综合网| 国产精品久久久久久久久免费桃花| 色综合天天综合网天天看片| 免费三级欧美电影| 国产三级一区二区三区| 在线观看成人免费视频| 理论片日本一区| 亚洲欧洲日本在线| 日韩一区二区三区免费看| 丁香亚洲综合激情啪啪综合| 亚洲成人激情av| 国产日韩欧美精品一区| 欧美亚洲尤物久久| 国产91在线|亚洲| 亚洲自拍另类综合| 中文字幕欧美日韩一区| 制服丝袜av成人在线看| 成人动漫在线一区| 日本三级亚洲精品| 国产精品美女久久久久久久久| yourporn久久国产精品| 日韩成人免费看| 亚洲手机成人高清视频| 久久久久久久久久电影| 欧美日韩免费在线视频| 成人毛片老司机大片| 免费的成人av| 亚洲一区二区免费视频| 亚洲色图欧美在线| 欧美va天堂va视频va在线| 一本色道亚洲精品aⅴ| 国产精品一区二区在线观看网站 | 亚洲乱码国产乱码精品精小说| 51精品视频一区二区三区| 成人av在线电影| 精品一区二区av| 日韩电影在线一区二区| 亚洲精品国产a| 国产精品免费免费| 国产欧美一区在线| 精品不卡在线视频| 欧美一区二区福利视频| 在线电影一区二区三区| 欧美日韩精品欧美日韩精品 | 国产精品对白交换视频| 欧美精品一区男女天堂| 日韩一区二区三区视频| 欧美一区二区三区婷婷月色| 欧美日韩中文字幕一区| 在线精品视频一区二区| 在线亚洲免费视频| 91小视频免费观看| 色综合天天综合网国产成人综合天| 国产亚洲精品超碰| 91搞黄在线观看| 在线一区二区三区四区五区| 色噜噜狠狠成人中文综合| 91精品福利视频| 欧美在线一二三四区| 欧美午夜寂寞影院| 欧美日韩国产不卡| 91精品国产综合久久福利| 欧美一区二区视频免费观看| 日韩欧美国产系列| 亚洲精品在线观看视频| 国产日产亚洲精品系列| 国产精品久久一卡二卡| 成人欧美一区二区三区| 亚洲免费视频中文字幕| 亚洲国产va精品久久久不卡综合| 五月天激情综合| 免费在线观看成人| 国产成人在线视频网址| 成人性生交大片免费| 色综合色狠狠天天综合色| 欧美自拍丝袜亚洲| 日韩欧美卡一卡二| 国产精品乱码妇女bbbb| 一卡二卡三卡日韩欧美| 美国三级日本三级久久99| 国产激情一区二区三区| 色综合久久久久网| 欧美一区2区视频在线观看| 久久久久久久久久久久久久久99 | 国产专区欧美精品| 不卡的av在线| 欧美挠脚心视频网站| 久久久久九九视频| 亚洲午夜精品在线| 激情综合网av| 91精品1区2区| 精品国产青草久久久久福利| 国产精品免费免费| 美女爽到高潮91| 不卡电影免费在线播放一区| 欧美午夜精品电影| 免费视频一区二区| 久久精品一二三| 日韩女优av电影| 一区精品在线播放| 奇米777欧美一区二区| 成人免费视频一区| 日韩欧美在线一区二区三区| 《视频一区视频二区| 美女视频黄免费的久久| 色88888久久久久久影院按摩| 欧美精品一区二区三区在线播放| 一区二区三区欧美日| 国产一区二区不卡老阿姨| 欧美浪妇xxxx高跟鞋交| 中文字幕中文字幕在线一区| 国产乱码精品1区2区3区| 欧美日韩精品福利| 亚洲日本电影在线| 国产精品系列在线观看| 制服丝袜亚洲色图| 伊人婷婷欧美激情| 成人a免费在线看| 337p日本欧洲亚洲大胆色噜噜| 亚洲成av人片一区二区| 91麻豆文化传媒在线观看| 国产欧美综合在线观看第十页| 奇米精品一区二区三区四区| 欧美日韩国产电影| 亚洲午夜私人影院| 欧美在线影院一区二区| 亚洲三级在线播放| 成人精品鲁一区一区二区| 久久影院午夜片一区| 美女视频黄a大片欧美| 制服丝袜激情欧洲亚洲| 亚洲成在人线免费| 欧美男男青年gay1069videost| 亚洲一区二区三区小说| 日本道色综合久久| 一区二区在线观看视频|