Giter VIP home page Giter VIP logo

Comments (3)

fuxx avatar fuxx commented on June 3, 2024

I fixed the order of arguments now and renamed callExtensions to callExtension. No compile error anymore but i dont get any request on the server side. I am sure iam missing just one little thing :)

"arma3urlfetch" callExtension [
    "FUNC", 
    [
        "#url=https://x.x.royal-combat-force.de/x",
        "#method=POST",
        "#postData", _uidParameter
    ]
];

from arma3urlfetch.

pixlcrashr avatar pixlcrashr commented on June 3, 2024

Well, you are not calling any available function. See this list for available functions/commands.

You can also make a request with the predefined function (mentioned here):

private _response = [
    <string/url>, //the url of an request
    <string/method>, //the HTTP method; most of the time it is "GET"
    <array/headers>, //(optional) headers to send with the request
    <string,array/postData>, //(optional) the post data to send with the request
    <bool/decodeJson> //(optional) should a json response converted?
] call a3uf_common_fnc_request;

Please notice that this function is only available for scheduled scripts.

from arma3urlfetch.

fuxx avatar fuxx commented on June 3, 2024

Thank you very much :) I am very rookie to SQF so i used some code posted to another issue i found. I am using what you posted now and it works flawless :)

_uid = getPlayerUID _player;
_uidParameter = format ["ping[arma_id]=%1", _uid];
_response = [
	"https://x.x.royal-combat-force.de/x", //the url of an request
	"POST", //the HTTP method; most of the time it is "GET"
	["#postData", _uidParameter] //(optional) parameters of the url request
] call a3uf_common_fnc_request;

Thank you very much!

from arma3urlfetch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.