I am trying to pass variable value (sample=1000) to a link
http://10.219.5.109:9000/mean
and it should finally look like
http://10.219.5.109:9000/mean?sample=1000
I am using following php code but it seems variable are not getting passed properly as it not running.
$curl_connection =curl_init('http://10.219.5.109:9000/mean');
$post_string='sample=1000';
curl_setopt($curl_connection, CURLOPT_POSTFIELDS, $post_string);
$result = curl_exec($curl_connection);
print_r(curl_getinfo($curl_connection));
How can i properly bind variables to link?
$curl_connection = curl_init('http://10.219.5.109/mean?'.$post_string).''are redundant @Kisaragi