Hello!
On Tue, May 10, 2016 at 5:52 PM, Oleg P wrote:
>
> It returns me full page HTML content, but CSS styles and JS scripts do not
> work. I suspect that problem is in path of these static files.
You need to parse the resulting HTML responses and crawl those
included static resources via separate requests.
> Also sometimes this methos returns page with message 302 Moved.
>
This case you need to follow the redirect yourself by checking the
Location response header of the 302 response and initiate a new
request to the new location.
Those lua-resty-http libraries are not like web browsers, just
low-level HTTP clients like curl.
Regards,
-agentzh