Subversion Repositories SmartDukaan

Rev

Rev 13633 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13633 Rev 13698
Line 35... Line 35...
35
			return $result;
35
			return $result;
36
		}
36
		}
37
	}
37
	}
38
 
38
 
39
	public function make_request($url,$fields,$format='json'){
39
	public function make_request($url,$fields,$format='json'){
40
		$this->log($url,'pythonapi');
40
		//$this->log($url,'pythonapi');
41
		$this->log($fields,'pythonapi');
41
		//$this->log($fields,'pythonapi');
42
		$fields_string = '';
42
		$fields_string = '';
43
		//open connection
43
		//open connection
44
		$ch = curl_init();
44
		$ch = curl_init();
45
		//set the url, number of POST vars, POST data
45
		//set the url, number of POST vars, POST data
46
		curl_setopt($ch,CURLOPT_URL, $url);
46
		curl_setopt($ch,CURLOPT_URL, $url);