CA Workload Automation ESP Edition

Expand all | Collapse all

Job set up for curl https

  • 1.  Job set up for curl https

    Posted 03-25-2020 02:18 PM

    We have a request from the business to know if we can set up jobs in the workload manager ESP edition that will call "curl https" to execute calling a URL and getting back a response. This is something we have not done before so could someone point me in the right direction to start looking into this or if it is possible



    Grange Insurance

  • 2.  RE: Job set up for curl https

    Posted 03-25-2020 02:26 PM
    Hi Keith,
    Using a system agent,  the curl command can be run from a UNIX/Windows script.
    curl does not run on the mainframe and HTTPS is also not possible from z/OS.


  • 3.  RE: Job set up for curl https

    Posted 03-25-2020 03:32 PM
    Hi Don, I think I got the part about running on the mainframe. We have jobs in our mainframe scheduler that reach out and run bat files on servers. I was wondering if there was similar set up to be able to run the curl https. Current example that we use below

    NT_JOB OSP*****
      AGENT HQDWA****
      USER GMCC\ESP****

    Grange Insurance

  • 4.  RE: Job set up for curl https

    Posted 03-25-2020 03:49 PM
    Hi Keith,
    That sample job will work.  As you probably know,  curl is not native on a Windows box so it will need to be downloaded and then configured for HTTPS.  Inside the OSP*****.BAT file,  call curl.exe and pass parameters to it.

    It may be possible to call curl.exe in the command directly and use the ARGS to pass parameters to the command. Using this method it would be difficult to capture any output retrieved from the command. The output will be in the spool file.