in reply to Re^8: Need to know the process to implement perl script into web application server.
in thread Need to know the process to implement perl script into web application server.

You seem to believe that $client->responseContent() returns a JSON, but the error shows the returned string starts with a "<", so it's probably an XML or HTML. What does the content contain? Maybe you need to tell the server you want JSON back somehow?

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^10: Need to know the process to implement perl script into web application server.
by chandantul (Scribe) on Apr 22, 2021 at 21:04 UTC

    Hello Sir, The API call URL is incorrect as i am not able to pass the expected app id that i was passing through config.properties that i was unable to pass through Web FORM. Please check below its incomplete, Wondering if the @arg having some issues

    https://sso.abc.com/users/sys/logs?filter=eventType+eq+%22all.auth.sso +%22+and+target.id+eq+%22%22&since=2021-04-22T00%3A00%3A00.000-04%3A00 +&until=2021-04-21T23%3A59%3A59.000-04%3A00

    It suppose to be below as per config.properties values

    https://sso.abc.com/users/sys/logs?filter=eventType+eq+%22all.auth.sso +%22+and+target.id+eq+%220345789ijklmnopqrst%22&since=2021-04-22T00%3A +00%3A00.000-04%3A00&until=2021-04-28T23%3A59%3A59.000-04%3A00

    2021-04-23 Athanasius fixed over-long code lines.

      For reasons unknown to me, you removed the population of $args from the sub. But what's the contents of @_ outside of a sub?

      Also note that $args and @arg are two totally unrelated variables of a different type and name. When chatting with friends, one doesn't have to be always precise, but when programming, every detail matters.

      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

        Hello Sir, How can i add multiple sub program under single query.tt in my Dancer2 app? Please check my current code but i would like add redio buttons for multiple app and its respective submit buttons , If i hit any of the redio buttons then its targetting to to main program only. but i will need its should target its respective sub program

        My Current query.tt

        <form id="f1" method="post" action="/"> <style> body { background-color: #ABBAEA; } div { height: 200px; background-color: #FBD603; } </style> <body> <div> <p>Synchrony OKTA MFA N +etwork Analysis Report Automated Application </p> <label for="APPID">Application ID</label> <input id="text" name="APPID"> <label for="date">Time in Hours</label> <input id="date" name="date"> <label for="Email">Recipient Email</label> <input id="email" name="Email"> <button>Submit</button> </div> <div> <input type="radio" name="Preview Users List"> <label for="Preview Users List">OKTA Preview Users List</label> <button>Submit</button> </div> </body> </form> <form id="f11" method="post" action="/"> <style> body { background-color: #ABBAEA; } div { height: 200px; background-color: #FBD603; } </style> <body> <div> <input type="radio" name="Preview Users List"> <label for="Preview Users List">OKTA Preview Users List</label> <button>Submit</button> </div> </body> </form>
      A reply falls below the community's threshold of quality. You may see it by logging in.