Curl app with sc_redir

Ciao.
I have this problem:
I have to execute a cron (curl -X GET -G ‘https://www.xxxx.com/blank_app_0/index.php’ -d “p = yyy”) at set time of a blank type application, it receives via GET a or more parameters, change the connection to the database, value some global variables and redirect to another blank (blank_app_1) which takes care of the processing.
Redirection (sc_redir) doesn’t work with curl. The execution of the app stops in sc_redir
Unfortunately with scriptcase the connection change does not take place in the same app and you have to run another app. At least that’s what I’ve always done.
Obviously if I run it manually from the browser everything works!

The solution would be to make a special connection for each blank, but … 50 customers who use the service, 50 connections, 50 blanks, 50 chron … !!!

What other solutions or attempts can I do?

  • scriptcase 9.5.003
  • web server: debian, nginx, mariadb

Thank you and good job to everybody
Enrico