Subversion Repositories SmartDukaan

Rev

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

Rev 17639 Rev 17664
Line 277... Line 277...
277
		rtrim($fields_string, '&');
277
		rtrim($fields_string, '&');
278
		//set the url, number of POST vars, POST data
278
		//set the url, number of POST vars, POST data
279
		curl_setopt($ch,CURLOPT_URL, $url);
279
		curl_setopt($ch,CURLOPT_URL, $url);
280
		curl_setopt($ch,CURLOPT_POST, count($fields));
280
		curl_setopt($ch,CURLOPT_POST, count($fields));
281
		curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);
281
		curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);
-
 
282
		curl_setopt($ch,CURLOPT_HTTPHEADER, array('Content-Type: multpipart/form-data'));
282
		$result = curl_exec($ch);
283
		$result = curl_exec($ch);
283
		$this->log("[response] ".print_r($result,1),'api');
284
		$this->log("[response] ".print_r($result,1),'api');
284
		//close connection
285
		//close connection
285
		curl_close($ch);
286
		curl_close($ch);
286
		switch($format){
287
		switch($format){