Jump to content

Recommended Posts

Posted


Hi to All


In hyper server mode

Is it possible to send a http: POST / GET request to a specified node.


How to tell to HyperServer to forward request to specific node (for example node "0")


Is it possible to send request and this request to be forwarded(broadcasted)  to all currently running nodes.


It is about custom application commands to nodes , question is not related to client sessions

 

Something like:

  https://myAppl.com:8077/n0?runbackup=now
or

  https://myAppl.com:8077/broadcast?nodeCmd=some_node_comand

Thanks 

Kamen

  • Upvote 1
  • 4 weeks later...
  • 2 months later...
  • 3 years later...
Posted

is this resolved? I am having the same problem

if I send this http request see below to a standalone unigui application then it works fine but not if it is running through hyper server

this is the post request(works in standalone): response:=lHTTP.Post('https://mydomain.com/WEBSERVICES?WEBSERVICE=IACSCANEXISTS&DBNAME=abc', m);

this is what I have in hyper_servcie.cfg

[application-4]
enabled=1
alias=webservices
binary_name=IACWEBSERVICES.EXE
persistent_node=1
initial_nodes=2
max_nodes=5
max_sessions=0
sessions_per_nodes=0

if this problem is resolved please let me know how to fix it.

Note: if you enter the request in a browser(chrome) then it works fine I get a response when running in hyperserver but not from from delphi app.

 

Posted

it is working now

The problem was making a call to https, needed to add SSL IOHANDLER after lHTTP := TIdHTTP.Create(nil);

if pos('HTTPS',URL.ToUpper)>0 THEN BEGIN
    IOHANDLER:=TIdSSLIOHandlerSocketOpenSSL.Create(lHTTP);
    IOHANDLER.SSLOptions.Method:=sslvSSLv23;
    lHTTP.IOHandler := IOHANDLER;
    lHTTP.HandleRedirects := True;
END;

  • Thanks 1
Posted
On 8/26/2024 at 11:52 PM, jackamin said:

it is working now

The problem was making a call to https, needed to add SSL IOHANDLER after lHTTP := TIdHTTP.Create(nil);

if pos('HTTPS',URL.ToUpper)>0 THEN BEGIN
    IOHANDLER:=TIdSSLIOHandlerSocketOpenSSL.Create(lHTTP);
    IOHANDLER.SSLOptions.Method:=sslvSSLv23;
    lHTTP.IOHandler := IOHANDLER;
    lHTTP.HandleRedirects := True;
END;

Many Thx jackamin

You safe my time :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...