Traccar OpenGTS protocol ignores the GET method from curl or wget but accept Firefox/Chrome

Himanshu5 years ago

I am getting same issue when I am sending data from CURL to osmAnd. The device status is getting updated from Offline to Online but traccar is unable to save the lat, long and other parameters. I can't disable the Reverse Geocoding in my case. I am using below code:

$url = 'http://myserver.com:5055/?id='.$GPSData->deviceId.'×tamp='.$GPSData->gpstimestamp.'&lat='.$GPSData->latitude.'&lon='.$GPSData->longitude.'&speed='.$GPSData->speed;

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$combined = curl_exec($ch);
curl_close ($ch);