티스토리 뷰

<전송 블록 : PHP>

			$KeywordID = $_POST['KeywordID'];
			$Tablename = $_POST['Tablename'];
			$LatestArticleNo = $_POST['LatestArticleNo'];
			if($LatestArticleNo < 0) $LatestArticleNo = 0;
			$AI1 = new cArticleInfo();
			if($KeywordID != NULL) $AI1->KeywordID = $KeywordID;
			$AI1->TABLENAME = $Tablename;
			$AI1->SNo = $LatestArticleNo;
			$rst2['Results'] = $AI2->LoadNewArticles($conn0);			
			if($Rst2['Results'] != NULL) echo json_encode($Rst2);
			else echo "NULL Results<br>";

<수신 블록 : Python>

        print('Loading new articles ...')
        collectionInfo['RequestType'] = 'LoadNewArticles'
        res1 = requests.post(self.ServerURL, headers=self.REQUESTHEADER, data=collectionInfo)
        print(res1.text)    
        articleList = res1.json()

 

반응형