Merge pull request #1153 from Werzi2001/eqsl_password_query_string
eQSL request changed from GET to POST
这个提交包含在:
		
						当前提交
						9e19bfe2c6
					
				
					共有  1 个文件被更改,包括 13 次插入 和 13 次删除
				
			
		|  | @ -145,18 +145,16 @@ class eqsl extends CI_Controller { | ||||||
| 			// Query the logbook to determine when the last LoTW confirmation was
 | 			// Query the logbook to determine when the last LoTW confirmation was
 | ||||||
| 			$eqsl_last_qsl_date = $this->logbook_model->eqsl_last_qsl_rcvd_date(); | 			$eqsl_last_qsl_date = $this->logbook_model->eqsl_last_qsl_rcvd_date(); | ||||||
| 
 | 
 | ||||||
| 			// Build URL for eQSL inbox file
 | 			// Build parameters for eQSL inbox file
 | ||||||
| 			$eqsl_url .= "?"; | 			$eqsl_params = http_build_query(array( | ||||||
| 			$eqsl_url .= "UserName=" . $data['user_eqsl_name']; | 				'UserName' => $data['user_eqsl_name'], | ||||||
| 			$eqsl_url .= "&Password=" . urlencode($data['user_eqsl_password']); | 				'Password' => $data['user_eqsl_password'], | ||||||
|  | 				'RcvdSince' => $eqsl_last_qsl_date, | ||||||
|  | 				'QTHNickname' => $active_station_info->eqslqthnickname, | ||||||
|  | 				'ConfirmedOnly' => 1 | ||||||
|  | 			)); | ||||||
| 
 | 
 | ||||||
| 			$eqsl_url .= "&RcvdSince=" . $eqsl_last_qsl_date; | 			//echo "<br><br>".$eqsl_url."<br>".$eqsl_params."<br><br>";
 | ||||||
| 			$eqsl_url .= "&QTHNickname=" . urlencode($active_station_info->eqslqthnickname); |  | ||||||
| 			 |  | ||||||
| 			// Pull back only confirmations
 |  | ||||||
| 			$eqsl_url .= "&ConfirmedOnly=1"; |  | ||||||
| 
 |  | ||||||
| 			//echo "<br><br>".$eqsl_url."<br><br>";
 |  | ||||||
| 			 | 			 | ||||||
|  			// At this point, what we get isn't the ADI file we need, but rather
 |  			// At this point, what we get isn't the ADI file we need, but rather
 | ||||||
| 			// an HTML page, which contains a link to the generated ADI file that we want.
 | 			// an HTML page, which contains a link to the generated ADI file that we want.
 | ||||||
|  | @ -170,8 +168,10 @@ class eqsl extends CI_Controller { | ||||||
| 			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);  | 			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);  | ||||||
| 			curl_setopt($ch, CURLOPT_HEADER, 1); | 			curl_setopt($ch, CURLOPT_HEADER, 1); | ||||||
| 			 | 			 | ||||||
| 			// use the URL we built
 | 			// use the URL and params we built
 | ||||||
| 			curl_setopt($ch, CURLOPT_URL, $eqsl_url); | 			curl_setopt($ch, CURLOPT_URL, $eqsl_url); | ||||||
|  | 			curl_setopt($ch, CURLOPT_POST, 1); | ||||||
|  | 			curl_setopt($ch, CURLOPT_POSTFIELDS, $eqsl_params); | ||||||
| 			 | 			 | ||||||
| 			$input = curl_exec($ch);   | 			$input = curl_exec($ch);   | ||||||
| 			$chi = curl_getinfo($ch); | 			$chi = curl_getinfo($ch); | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用