Re: help for implementation of first fetch function "sample_fetch_json_string"

2021-04-08 Thread Aleksandar Lazic
Tim, you are great ;-) On 08.04.21 18:14, Tim Düsterhus wrote: Aleks, On 4/8/21 5:07 PM, Aleksandar Lazic wrote: http-request set-var(sess.json) %[req.hdr(Authorization),b64dec,json_string("\$.kubernetes\\.io/serviceaccount/namespace")] http-request set-var() does not expect the %[] syntax,

Re: help for implementation of first fetch function "sample_fetch_json_string"

2021-04-08 Thread Tim Düsterhus
Aleks, On 4/8/21 5:07 PM, Aleksandar Lazic wrote: http-request set-var(sess.json) %[req.hdr(Authorization),b64dec,json_string("\$.kubernetes\\.io/serviceaccount/namespace")] http-request set-var() does not expect the %[] syntax, because it always takes a sample. Even the following returns th

help for implementation of first fetch function "sample_fetch_json_string"

2021-04-08 Thread Aleksandar Lazic
Hi. I try to implement "sample_fetch_json_string" based on https://github.com/cesanta/mjson. Because I haven't implemented a fetch function until now it would be nice when somebody helps me and point me into the right direction. Maybe I have overseen a documentation in the doc directory. Let