I'm trying to connect to my ES via a proxy using a client written in perl. 
What's the best way to do this?

Here's what I have, and it works, but I suspect there's a more straight 
forward approach:

$e = Search::Elasticsearch->new(
   cxn => 'LWP',
   nodes => 'node1:9200' );

$ENV{HTTP_proxy} = "http://proxy:3128";;
$e->transport->cxn_pool->next_cxn->handle->env_proxy;




-- 

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/79f08fa4-6bac-4876-8c92-85f3e89a9220%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to