Extract Value from Database and return in the HTTP Response Header

Options

What steps would I use to extract a value from a database and then return that value in the HTTP response header? In my example, I would get a value for "group": select group from groups; Then I want to return an HTTP header: X-Group:

Thanks,

JT

Comments

  • williammccusker
    williammccusker Posts: 718 ✭✭✭
    Options

    Hi,

    I would try to use the db tool to execute the query then chain a data bank to it to place the desired value into a column and finally use that data bank column for the value of the response header.