push notification using SendWEBRequest
audrius.kiskunas
8-12-21
Operating system: Windows
Hello,

we want to use function SendWEBRequest to send push notifications via Google Firebase, but the parameters of the function are not quite clear. Below we put question marks "= ?" for functions that need to be explained.


SendWebRequest(server,443,-1,true,"POST",getstr,"text,xml","",false,req,reply,30);


server = server address
443 = port

-1 = ?
true = ?
"POST" = request method
getstring = request parameters to be included into the request line (after server address)
"text/xml" = Content -Type
"" = ?
false = ?
req = request body in json format?
reply = response?
30 = ?

Appreciate Your comments and recommendations.

Audrius
Nick Hemming
8-18-21
hi Audrius

This is being reviewed by the Team and I WILL GET BACK TO YOU asap.

Nick
Nejc R.
8-18-21
server = server address
443 = port
-1 = original use was second parameter is web port third is SSL port and then ssl flag decides what to use. but if the third parameter is <0 second is used no matter what
true = use SSL flag (will use SSL if true)
"POST" = request method
getstring = request parameters to be included into the request line (after server address)

"text/xml" = Content -Type
"" = Used for SOAP method
false = not certain I think its mostly unused now but should be set to false

req = data that will be sent as the payload in the request (usually a json or XML)
reply = data that comes back as the payload in response (usually a json or XML)
30 = timeout in seconds
audrius.kiskunas
8-19-21
Created byNejc R.10:27 18 Aug 2021
server = server address 443 = port -1 = original use was second parameter is web port third is SSL port and then ssl flag decides what to use. but if the third parameter is <0 second is used no matter what true = use SSL flag (will use SSL if true) "POST
Thank You!

Audrius
Christoffer Riska
8-20-21
Created byNejc R.10:27 18 Aug 2021
server = server address 443 = port -1 = original use was second parameter is web port third is SSL port and then ssl flag decides what to use. but if the third parameter is <0 second is used no matter what true = use SSL flag (will use SSL if true) "POST
Maybe someone could update this site http://halforum.hansaworld.net/primitives
It is missing a lot of info.
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Back to the list
Latest Posts
Bror-Erik Kotiranta
Clients have their own cache, and then the server has the shared cache, if you want it kind of black and white. Presense should be there as far as i know...
10:55 7 July 2025
Yavuz Yigiterhan
Hello Paul, That is something only HansaWorld can do. But that would help to understand is that causing the problem and - if so - we fix the issue. Additional information is appreciated. Yavuz...
10:45 7 July 2025