How do I make a new request in the header_filter_by_lua phase and return the contents of the new request to the client?

22 views
Skip to first unread message

Binli_run

unread,
Dec 6, 2021, 1:30:23 AM12/6/21
to openresty-en
I want to save the cookie returned the first time, and then initiate a new request to log in

Junlong li

unread,
Dec 6, 2021, 7:17:08 AM12/6/21
to openresty-en
  header_filter_by_lua  can not be yielded, so can not do request in this phase.

Junlong li

unread,
Dec 6, 2021, 7:18:37 AM12/6/21
to openresty-en
maybe you can generate the cookie in the gateway, and then send it to remote server in the timer.
Reply all
Reply to author
Forward
0 new messages