Comments (3)
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.
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.
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)
- HTTP_USER_AGENT is missing HOT 3
- Add headers to a3uf_common_fnc_addClient HOT 6
- Add POST data feature
- GETRQ: 601 instead of 602? HOT 8
- Create Location header redirect parameter
- Merge to VC12 for the extension
- Linux compatibility HOT 27
- Compile libssl/libcrypto manually HOT 2
- Add more specific error codes
- [QUESTION]: SENDRQ, GETRQ, GETST codes. HOT 1
- SENDRQ: 500 Internal Server Error [Windows] HOT 3
- CPU Unexpected load. HOT 13
- Any chance for an 64bit Linux version ? HOT 2
- Arma 2.0 Update They Added Linux 64bit Support HOT 11
- Error Generic Error in expression HOT 3
- Status Stack Buffer Overrun HOT 13
- Recompile to Linux .so? HOT 1
- Bad Gateway and possibly other connection errors crash the game HOT 1
- Version v1.0 is not whitelisted by Battleye HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arma3urlfetch.