Subversion Repositories SmartDukaan

Rev

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

Rev 15606 Rev 18594
Line 14... Line 14...
14
			}
14
			}
15
		}
15
		}
16
    }
16
    }
17
 
17
 
18
    private function make_request($url,$fields,$format='json'){
18
    private function make_request($url,$fields,$format='json'){
19
		$this->out("[url] $url");
19
		//$this->out("[url] $url");
20
		$this->out("[fields] ".print_r($fields,1));
20
		//$this->out("[fields] ".print_r($fields,1));
21
		$this->log("[url] $url",'api');
21
		//$this->log("[url] $url",'api');
22
		$this->log("[fields] ".print_r($fields,1),'api');
22
		//$this->log("[fields] ".print_r($fields,1),'api');
23
		$fields_string = '';
23
		$fields_string = '';
24
		//open connection
24
		//open connection
25
		$ch = curl_init();
25
		$ch = curl_init();
26
		//execute post
26
		//execute post
27
		foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }
27
		foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }