[Mojolicious] Re: Mojolicious equivalent of php.info or classic env.cgi?

2015-02-06 Thread John Karr
I've posted a GIST for a dump of %ENV (like the classic cgi env example) 
plus all of the cookies. 

The information is in the standard mojolicious error page, but you don't 
need to force a runtime error to get to it. 

https://gist.github.com/brainbuz/b8ad9fd0911400a23aac

On Wednesday, November 5, 2014 at 12:48:56 AM UTC-5, John Karr wrote:
>
> I'm learning Mojolicous and wondering if there is existing code to dump 
> everything about a request for debugging use.
>
> I had written something like this when I was learning Catalyst (
> http://techinfo.brainbuz.org/2011/12/10/a-catalyst-controller-for-debugging/) 
> and started with dumping the mojolicious ->req object, but it seems like 
> I'm dumping a lot less than I was able to with Catalyst. 
>

-- 
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 http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


[Mojolicious] Re: Mojo::UserAgent submitting repeating fields

2014-11-14 Thread John Karr
Thanks Sebastian, 

I re-read the manpage you indicated yet another time and finally saw the 
answer. The modified example below works.

my $postquery = {
'fq'   => [ '{!geofilt pt=40.76,-74.00 sfield=latlong d=60}',  
'event_date:[NOW TO NOW+60DAY]' ],
'q'=> '(*:*)',
'rows' => 100,
'wt'   => 'json'
};

-- 
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 http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


[Mojolicious] Mojo::UserAgent submitting repeating fields

2014-11-13 Thread John Karr
I'm converting a model from using LWP to Mojo::UserAgent. In LWP I was able 
to use a balanced array ref instead of a hash ref to submit repeated form 
fields to my Solr Server, but this does not work with Mojo::UserAgent which 
seems to only accept a hashref for the post body. 

The data looks like this.
my $postquery = [
'fq'   => '{!geofilt pt=40.76,-74.00 sfield=latlong d=60}',
'fq'   => 'event_date:[NOW TO NOW+60DAY]',
'q'=> '(*:*)',
'rows' => 100,
'wt'   => 'json'
];

The workaround would be to combine the fq fields.

-- 
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 http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


[Mojolicious] Mojolicious equivalent of php.info or classic env.cgi?

2014-11-04 Thread John Karr
I'm learning Mojolicous and wondering if there is existing code to dump 
everything about a request for debugging use.

I had written something like this when I was learning Catalyst (
http://techinfo.brainbuz.org/2011/12/10/a-catalyst-controller-for-debugging/) 
and started with dumping the mojolicious ->req object, but it seems like 
I'm dumping a lot less than I was able to with Catalyst. 

-- 
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 http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.