can someone guide me how to make a curl on this 1.
[url]http://xxx.xxx.xxx.xxxx:xxxx/cgi-bin/sendsms?username=username&password=password&to=123456789&from=12345&text=test[/url] message
i tried to create like this but it gives me error upon print it says invalid content type.
$params = "username=username&password=password&to=123456789&from=12345&text=test message"
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$params);
curl_setopt($ch, CURLOPT_URL, 'http://xxx.xxx.xxx.xxx:xxxx/cgi-bin/sendsms');
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$result = curl_exec ($ch);
curl_close ($ch);
print $result;
so can someone help me with this.
thank you in advance.