Board index FlightGear Development Nasal

Hello everyone

Nasal is the scripting language of FlightGear.

Hello everyone

Postby msmile024 » Tue May 08, 2018 6:21 am


I have sought around and I have a really hard time finding definite documentation about sending HTTP requests from Nasal.

I see that it is possible, but I am unsure whether I am only able to send GET requests? And can I somehow include custom data with the request?

The HTTP API I am seeking to integrate, uses endpoints in the format of and consumes arbitrary methods and included data in JSON format.
Posts: 1
Joined: Tue May 08, 2018 6:19 am

Re: Hello everyone

Postby PINTO » Tue May 08, 2018 5:58 pm

You can send info from FG to the server, but it has to be in the form of a URL query string. You can either get back a PropertyList xml file (using the fgcommand("xmlhttprequest", params)) or the whole resource (using http.load() or

You can use, for instance

I am using for my server-side code.
Actively developing the MiG-21bis (github repo) (forum thread) (dev discord) (fg wiki) is an active flightgear dogfighting community (using a system that isn’t bombable)
User avatar
Posts: 961
Joined: Wed Oct 21, 2015 6:28 pm
Callsign: pinto
Version: 2016.3.0
OS: Win10

Return to Nasal

Who is online

Users browsing this forum: No registered users and 1 guest