lua-resty-requests
lua-resty-requests copied to clipboard
Proxy auth
Hello, thanks for the convenient library. I have one question regarding proxy usage, can I pass authentication for a proxy?
@marcoroganovic Sorry i'm afraid that i don't understand your mean. Could you give me an example? Or i guess you are saying the Authorization header?
@tokers Hey, thanks for replying.
Basically, I need to do next:
- Connect domain to some VPS
- On that domain setup OpenResty configs
- Once someone hits those domains I need to set headers like host, authorization, user-agent
- And then to forward that request through some dedicated proxy in order to not show servers IP
@tokers Hi, any opinion on this?
In my opinion, the process of authorization is not bound with lua-resty-requests, you can prepare these authorization related headers first and use them when calling methods provided by this library.
@tokers
What I'm making is a small crawler and I need to change IP addresses, to avoid certain limits on a single IP, can this client library be used like that?