Registering to use the service To obtain an login and password, please register here Connecting to the service Xml requests are submitted to api.travelfusion.com/Xml as the body of an HTTP POST request. You may connect using http or https (secure). Please see the general guidelines for information about our secondary system and correct handling of IPs, URLs and DNS. In general, UTF-8 encoding should be used. The 'Content-Type' and 'Host' header must be submitted in the HTTP headers. GZip compression must be requested in all HTTP requests. (But please note that Travelfusion's servers may not always return gzip compressed results) Example java and PHP code is supplied below which can be used to submit the login request to the Travelfusion service and obtain a response. You should insert your login and password into the appropriate place (highlighted in red) before executing this code. This code is supplied as guidance only and it is not necessarily functional or correct and is not recommended for use in any application. It is recommended that you consider connection problems very carefully. There are many reasons that a connection to our system may timeout or fail completely. You should detect these cases and implement retries wherever applicable/ safe to do so. Java Code Example PHP Code Example |