mojolicious Questions
1
Solved
The following route definition works nicely
sub load_routes {
my($self) = @_;
my $root = $self->routes;
$root->get('/')->to( controller=>'Snipgen', action=>'indexPage');
$root-...
Retributive asked 23/4 at 16:3
2
Is there a way to describe a json-lines with OpenAPI?
Besides the fact that there seems to be no MIME type for it yet, I'm wondering if it's possible to describe such a response.
In theory my respo...
Twobyfour asked 9/9, 2021 at 19:28
2
I am using Mojolicious for a web app that requires an encrypted connection, but I don't know how to add SSL support to Mojolicious.
My coworker sent me these: files domain.key, domain-bundle.crt,...
Rancidity asked 9/12, 2015 at 1:45
3
Solved
How to redirect user defined error page for not found and server error pages to user define page Mojolicious lite
Genuflection asked 7/11, 2012 at 14:57
3
I have small app based on mojolicious. And I have index.html in public dir. I want to have route to this file when user asks for '/'.
I wrote two solution, but I don't like them.
First solution -...
Chaumont asked 5/3, 2015 at 14:49
1
Solved
I'm attempting use Mojo::UserAgent to verify the gzip compression (Content-Encoding) of an application.
Unfortunately, it appears that this UA silently decodes the content and removes the Content-E...
Submit asked 18/1, 2021 at 22:15
1
I am looking for Mojolicious one liner for serving static files and listing the directory by default
I come to this one liner :
perl -Mojo -E "a->static->paths(['c:\temp']);a->start&q...
Sopher asked 5/10, 2020 at 9:48
1
Solved
I'm writing a program with Perl that uses Mojolicious and Sqlite. I will be using Par Packer to distribute it as an .exe file for deployment on other Windows machines.
I use Strawberry Perl on Win...
Vardar asked 22/9, 2016 at 11:7
3
Solved
The title pretty much summarizes exactly my problem. I have my login controller, and I'd like to redirect to previous page after login. E.g., If I am viewing the Contact Us page, then I log in, I'd...
Alabaster asked 16/10, 2015 at 9:41
1
Solved
I am working on a simple Mojolicious::Lite based server that includes a websocket end point.
I would like to handle some termination signals to terminate gracefully the websocket connections and a...
Sexy asked 23/3, 2020 at 13:10
2
Solved
I'm new to Mojolicious, trying to learn it. I'm trying to upload multiple files using form but only one file is uploaded at a time. Any suggestion?
#!perl -w
use Mojolicious::Lite;
use Mojo::Uplo...
Sextuplet asked 19/2, 2015 at 9:37
2
How can I get access to JSON in a mojo response?
$txn = $ua->post( $url, $headers, json => {json} )
What's the way to get the JSON response from the txn?
Yorktown asked 29/1, 2020 at 0:18
1
Solved
use Mojo::UserAgent;
my $ua = Mojo::UserAgent->new;
my $tx = $ua->get( shift );
How to get structure and inheritance history of these Perl objects ($ua and $tx)?
Data::Dumper shows only sm...
Volotta asked 28/12, 2019 at 16:31
2
Solved
How can I make my code do something after HypnoToad sends a page? (Note: I am answering my own question. I am posting this, because StackOverflow pointed me to a previous question that did not dire...
Arenaceous asked 30/11, 2019 at 5:8
2
I wondering if something like the below could be possible to do with Mojo::UserAgent :
let's say i have the below code :
my $ua = Mojo::UserAgent->new;
my $res = $ua->get('mojolicious.org/p...
Agone asked 10/9, 2018 at 8:54
1
Solved
In Mojolicious app, I need to figure out which controller method will be handling the incoming request so that I can log details of the remote client and add some logic. I want to do it at only one...
Repand asked 17/9, 2019 at 11:2
1
Solved
I am trying to use the PUT method to upload a file using Mojo::UserAgent, the file may be large, instead of passing the file contents as scalar, is there any other way?
This is what I have tried:
...
Edom asked 19/7, 2019 at 9:16
1
Solved
I would like to use Mojolicious' Mojo::Log tool to do logging in my Mojolicious web application. However, I am unsure of the proper/correct way to use it.
The documentation shows it used directly ...
Barbwire asked 9/7, 2019 at 22:52
2
Solved
I want to test a page with a form which, when submitted, will redirect to the resulting page for the submitted item.
My Mojolicious controller contains:
sub submit_new {
my $self = shift;
my $...
Billy asked 8/9, 2012 at 6:1
1
Solved
How to enforce Mojolicious(hypnotoad) app to use TLS v1.2?
mojo version output:
CORE
Perl (v5.16.3, linux)
Mojolicious (8.0, Supervillain)
OPTIONAL
Cpanel::JSON::XS 4.04+ (n/a)
EV 4.0+ (4.22...
Tricot asked 28/5, 2019 at 10:52
2
Solved
I'm using Mojo::DOM to identify and print out phrases (meaning strings of text between selected HTML tags) in hundreds of HTML documents that I'm extracting from existing content in the Movable Typ...
Cabrales asked 12/3, 2019 at 21:25
3
Solved
I have been trying out Mojolicious web framework based on perl. And I have try to develop a full application instead of the Lite. The problem I am facing is that I am trying to upload files to serv...
Hellfire asked 14/4, 2012 at 10:44
1
Solved
I am using Mojo::DOM Perl module to replace <IMG> tag, but the &nbsp; entity is replace by Mojo::DOM with \xa0, but when I print it out to the page the NBSP character becomes \x{fffd} and...
Querist asked 6/12, 2017 at 8:28
3
Solved
I'm looking for a reliable way to configure Mojolicious running behind an Apache reverse proxy under /app, so that url_for('/foo') actually returns /app/foo instead of just /foo (otherwise all the ...
Cassicassia asked 9/5, 2014 at 18:27
5
I need to place a Mojolicious app behind an Apache reverse proxy. I've been unable to get Mojolicious to generate working URLs when behind the proxy.
I'm using Mojolicious 6.14 with Perl 5.18.1.
...
Sirajuddaula asked 6/8, 2015 at 20:7
1 Next >
© 2022 - 2024 — McMap. All rights reserved.