you're right:
here's code that doesn't work:
$ch=curl_init();
curl_setopt($ch, CURLOPT_REFERER, "http://tms.tensingsks.com/tms/config/alh/Scherm2/index.html");
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_PROXY, "proxy.intra.syntegra.nl:8080");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$res=curl_exec($ch);
curl_setopt($ch, CURLOPT_URL, "http://tms.tensingsks.com/tms/scripts/tgigw.dll");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "app=resolve&cmd=resolve2&config=alh&posturl=&redirurl=http%3A%2F%2Ftms.tensingsks.com%2Ftms%2Fscripts%2Ftgigw.dll%3FAPP%3DTMS%26CMD%3DROUTE%26OUTPUT%3DHTML%26&RMODE=FAST&countryid1=0&countryid2=0&seltype1=1&pc1=1112ab&seltype2=1&pc2=1111aa&straat1=&straat2=&plaats1=&plaats2=&poicatid1=-1&poicatid2=-1&poi1=&poi2=&poiplaats1=&poiplaats2=&rmode=fast");
$res=curl_exec($ch);
curl_close($ch);
echo $res;
and here's code that does work:
exec('D:\inetpub\scripts\curl.exe '.
'-L -x proxy.intra.syntegra.nl:8080 '.
'-d "app=resolve&cmd=resolve2&config=alh&posturl=&redirurl=http%3A%2F%2Ftms.tensingsks.com%2Ftms%2Fscripts%2Ftgigw.dll%3FAPP%3DTMS%26CMD%3DROUTE%26OUTPUT%3DHTML%26&RMODE=FAST&countryid1=0&countryid2=0&seltype1=1&pc1='.$pc1.'&seltype2=1&pc2='.$pc2.'&straat1=&straat2=&plaats1=&plaats2=&poicatid1=-1&poicatid2=-1&poi1=&poi2=&poiplaats1=&poiplaats2=&rmode='.($kortste?'short':'fast').'" '.
'-e "http://tms.tensingsks.com/tms/config/alh/Scherm2/index.html" '.
'http://tms.tensingsks.com/tms/scripts/tgigw.dll', $res);
for ($i=0;$i<sizeof($res);$i++)
echo $res[$i];
functionally the same but result