Internet Card

Building Type


Build Gun In Game

The Internet Card is a PCI-Device you can place into a computer case and is available over PCI-Interface.

The Internet Card is a rather simple device not providing any big functionality.

The whole internet card can be used, to do http requests in every shape imaginable.

With this, you can f.e. download pastebin scripts or communicate with a custom REST Server.

Planned Features - Make it optional by config file for security reasons - Add socket connection support

Do a HTTP-Request

To do make http requests you can use the request function.
This function simply takes as first argument the URL you want to send the request to. As second argument it takes the request method (like GET, POST, PUT, etc.). As third argument it takes the body (aka. content) you want to send in the http request (leave it empty if there is non, like when you do just a get request).
The function is a var-args function, so you can now pass additional parameters to the function. The request function now requires additional parameters in pairs of two strings. The first string of a pair is a header name of an additional header you might want to send. The second string of a pair is the value of that header.
The function will return a future-struct which you can check or wait if the response got received, you can then get the request data like the response body.

When sending data in the request body, you ALWAYS have to define the Content-Type header field, otherwise the function will fail.

Have a look at this example to see how it is done in Lua.




Request request (String URL url, String Method method, String Data data, Struct(Future) ReturnValue ReturnValue out)

Does an HTTP-Request. If a payload is given, the Content-Type header has to be set. All additional parameters have to be strings and in pairs of two for defining the http headers and values.


RuntimeSync RuntimeParallel VarArgs

Name Type Description

URL url


The URL for which you want to make an HTTP Request.

Method method


The http request method/verb you want to make the request. f.e. 'GET', 'POST'

Data data


The http request payload you want to sent.

Return Values
Name Type Description

ReturnValue ReturnValue

Struct(Future) out