To keep the information usefull for others as well:

Browsers dont allow you to do crossdomain AJAX calls so you will have to use a proxy. The transport.php is a proxy for yournavigation you can find it in SVN. You can find examples of proxies everywhere with Google, e.g. OpenLayers also has one (python cgi-bin). The language where the proxy is written in doesn’t matter if it can relay the url parameters correctly. Your imitation as you described above should work if your proxy works OK and the url parameters are properly encoded.