Hopefully this is of help.

https://github.com/apache/trafficserver/pull/5639/files#diff-5c2f3297b2a6ac986fbf042017435a6a

It illustrates an example of using the Lua script to get the content
of a response into variable and print it out.

Kit

On Thu, Jun 20, 2019 at 5:41 PM Eric Friedrich -X (efriedri - TRITON
UK BIDCO LIMITED c/o Alter Domus (UK) Limited -OBO at Cisco)
<efrie...@cisco.com.invalid> wrote:
>
> Is there a simple API call to use to fetch the contents of a URL into a 
> buffer?
>
> I found an example of something close in the authproxy sample plugin, but 
> there looks to be almost a hundred lines of rather boilerplate code. I’d like 
> to avoid the copy and paste if I can
>
> —Eric
>
  • ... Eric Friedrich -X (efriedri - TRITON UK BIDCO LIMITED c/o Alter Domus (UK) Limited -OBO at Cisco)
    • ... Shu Kit Chan
      • ... Eric Friedrich -X (efriedri - TRITON UK BIDCO LIMITED c/o Alter Domus (UK) Limited -OBO at Cisco)
        • ... Leif Hedstrom
          • ... Eric Friedrich -X (efriedri - TRITON UK BIDCO LIMITED c/o Alter Domus (UK) Limited -OBO at Cisco)
            • ... Alan Carroll
              • ... Alan Carroll
                • ... Eric Friedrich -X (efriedri - TRITON UK BIDCO LIMITED c/o Alter Domus (UK) Limited -OBO at Cisco)
                • ... Alan Carroll
                • ... Alan Carroll
                • ... Alan Carroll
                • ... Aaron Canary

Reply via email to