Hi!

Mojo::UserAgent has proxy attribute. You can set it up request, catch error and if error is related to proxy, set next proxy and retry request.

On 07/01/2019 12:42, Veesh Goldman wrote:
I'm working on a project that requires cycling through a list of proxies.

I've been trying to implement a feature that when a proxy fails to connect, it switches to the next one. The problem is that I can't figure out how to tell from a Mojo::Transaction which proxy was used by the useragent. Any help is appreciated.


--
You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com <mailto:mojolicious+unsubscr...@googlegroups.com>. To post to this group, send email to mojolicious@googlegroups.com <mailto:mojolicious@googlegroups.com>.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to