Questions tagged [cgi-application]

CGI::Application is a lightweight, flexible MVC framework used for writing Perl web applications that can be deployed using CGI, FasgCGI, mod_perl, or PSGI.

22 questions
1
vote
0 answers

Perl CGI::Application writing to a document file

I am trying to generate a file in perl 5.8 which reads from an xml file( that has utf-8 encoding) and generates a word document. The code works fine when I run it at the command line. Same code when run from the CGI::Application it ignores unicode…
1
vote
1 answer

CGI::Application::Plugin::JSON - json_body returns backwards

I was wondering if anyone knew why this return is backwards with CGI::Application::Plugin::JSON sub { my ($self) = @_; my $q = $self->query; return $self->json_body({ result => '1', message => 'I should be AFTER result'} ); } The…
MattSizzle
  • 3,145
  • 1
  • 22
  • 42
1
vote
2 answers

Perl - CGI::Application - Create session variables from database

I have a bunch of configuration variables stored within a database, key value pairs accessable via the following query: select * from conf_table; I want to load these key/value pairs into a CGI::Applicaiton session. At the moment this is manually…
Dr.Avalanche
  • 1,944
  • 2
  • 28
  • 37
1
vote
1 answer

Perl nginx REST CGI::Application

I'm trying to convert a simple CGI::Application::Dispatch based REST application from an Apache server to Nginx. The application runs fine under Apache, but when running under Nginx, only the root layer of Dispatch requests work -- i.e. /app. Any…
bwern
  • 11
  • 1
0
votes
0 answers

Helper perl subroutine not returning in forked process

I have come across a wierd bug that I hope someone can help with. I've tried to provide as much background below without going into too much detail, but am happy to clarify anything confusing. Im currently working on a web-app that uses Perl for…
dnak
  • 138
  • 1
  • 1
  • 9
0
votes
1 answer

Perl CGI::Session save_param saves all parameters as array under one key

Im using CGI::Session to store session data from CGI::Application (specifically i'm using CGI::Session through the CGI::Application::Plugin::Session module). In one of my application modes I do this: my $self = shift; # Get CGI query object …
Euan Rochester
  • 183
  • 1
  • 8
-1
votes
2 answers

How do I upload file using CGI APPLICATION

Hi I am trying to upload image file using perl cgi-application. Not sure what I am doing wrong - but an empty image file (with the right name) gets saved. my $picture = $self->query->param('picture') ; my $buffer; my $bytesread; open…
prat
  • 607
  • 2
  • 8
  • 22
1
2