mirror of
				https://github.com/loviuz/wifi-probe-aggregator.git
				synced 2025-06-05 21:59:30 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			372 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			372 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
function webservice_post( $url, $post_data ){
 | 
						|
    $ch = curl_init();
 | 
						|
 | 
						|
    curl_setopt($ch, CURLOPT_URL, $url);
 | 
						|
    curl_setopt($ch, CURLOPT_POST, 1);
 | 
						|
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data) );
 | 
						|
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 | 
						|
 | 
						|
    $server_output = curl_exec($ch);
 | 
						|
 | 
						|
    curl_close ($ch);
 | 
						|
 | 
						|
    return $server_output;
 | 
						|
} |