I’m sorry to come back with this question again but ultimately it does not work.
I do not know why I thought it worked, maybe because my 2 year old son was running around and I was not concentrated enough.
therefore, I remove the problem of ports on my server since
curl -X POST -d ‘{ "usname" : "testUser6" }’ ‘https://myfirebase.firebaseio.com/users.json’
works correctly and returns:
{ "Name": "- Kw-y9sZtYlEn9IdJf08"}
what is OK
I may multiply the various tests,
anything that resembles
$_url = https://myfirebase.firebaseio.com/users.json
$_jsonmyvar = ^jsoncreate (transient object)
$_jsonmyvar.usname = testUser6
$_results = ^jsonopen (transient POST $_url $_jsonmyvar $$headers)
does not work.
I call $_results with
t: Do you whant me to send test8?
a: (~ yes) $_results OK it's done
a: (~ no) Ok, no problem
then I listen to Firebase’s response with
u: (<\[ name: _ * \]) name is _0
but nothing happens.
In the JSON documentation I do not understand exactly what ^ jsoncreate() returns exactly. Is this really ‘{"usname": "testUser6"}’ in my case?