Re: Perl client: Cannot combine params and body?

2015-01-21 Thread Andrew Walker
I forgot to mention that; it's commented out because the service I'm attempting to access refuses POST requests. I've been informed that this is a sort of low-hanging fruit security measure to prevent mutating methods. On Wednesday, January 21, 2015 at 1:17:07 PM UTC-5, Clinton Gormley wrote:

Re: Perl client: Cannot combine params and body?

2015-01-21 Thread Clinton Gormley
Hi Andrew The code looks correct. You have send_get_body_as POST commented out - I'm guessing that is the problem. Probably the service you're using does not allow GET requests with bodies. I'd uncomment that and try again. Ping me on https://github.com/elasticsearch/elasticsearch-perl/issues

Re: Perl client: Cannot combine params and body?

2015-01-21 Thread Andrew Walker
I have submitted an issue. Thanks for your attention! On Wednesday, January 21, 2015 at 1:41:39 PM UTC-5, Andrew Walker wrote: I forgot to mention that; it's commented out because the service I'm attempting to access refuses POST requests. I've been informed that this is a sort of

Re: Perl client: Cannot combine params and body?

2015-01-21 Thread Andrew Walker
Is there another mailing list I should be using, perhaps? I have still found no solution to this problem. On Thursday, January 15, 2015 at 3:44:11 PM UTC-5, Andrew Walker wrote: I have a remote node that I am attempting to connect to that requires an api key as a URL parameter in addition to

Perl client: Cannot combine params and body?

2015-01-15 Thread Andrew Walker
I have a remote node that I am attempting to connect to that requires an api key as a URL parameter in addition to the body in order to get it to work. The code is as follows: #!/usr/bin/perl use v5.14; use warnings; use Search::Elasticsearch; use Data::Dumper; my $API_KEY='API_KEY'; my $ES