Questions tagged [cgi.pm]

Questions related to the CGI.pm Perl module.

13 questions
3
votes
2 answers

perl CGI.pm: lists vs strings to build pages

Is there a reason why CGI.pm examples rely on list concatenation rather than on string concatenation? are the two interchangeable? think print q->hidden(-name =>'rm', -value => $var). q->submit(-name =>"rm$var"); vs. print q->hidden(-name…
ivo Welch
  • 2,427
  • 2
  • 23
  • 31
2
votes
1 answer

How do I get a list of CGI.pm fields that are only file uploads?

I have used CGI::Simple in the past, for a general purpose upload processor. I apparently used an internal method called upload_fieldnames, which returns an array of field names that are uploads. I am trying to adapt this code to use CGI.pm, because…
jimp
  • 16,999
  • 3
  • 27
  • 36
2
votes
2 answers

Perl: How to check if CGI::header has already been called?

Using CGI::Carp, I would like to use set_die_handler to gracefully output an error message. The web page is not expected to encounter an error, but if it does and it occurs somewhere after print header has already been called, it outputs the…
vol7ron
  • 40,809
  • 21
  • 119
  • 172
1
vote
2 answers

Get raw request body using perl CGI.pm

I am building a web server using Apache and Perl CGI which processes the POST requests sent to it. The processing part requires me to get the completely unprocessed data from the request and verify its signature. The client sends two different…
1
vote
0 answers

Processing multipart/form-data in Perl invokes Apache-error with Apple-devices, when a form-file-element is empty

My application is written in Perl 5.14.2. I process multipart/form-data with use CGI; $query = new CGI; Since a few weeks this process invokes a timeout at Apache-level on specific Apple-devices: (70007)The timeout specified has expired:…
1
vote
3 answers

Data posted as "multidimensional array" (read into arrays: PERL)

I'm using a new payment processor, and their data sheet simply says their information is posted as multidimensional array. To quote just a few of the variables: products[x][prod_number] products[x][prod_name] products[x][prod_type] ** There are ten…
Cristofayre
  • 121
  • 1
  • 11
0
votes
1 answer

Perl scripts on Apache not retrieving POST data

I'm trying to get a pre-existing PERL web application running on my local MAMP apache2 server and am having problems getting post data. The app uses cgi.pm to try to grab data from $cgi->param, but param is always empty even when properly formatted…
0
votes
3 answers

Add css for cgi.pm file

I have written this code in cgi file for html but it's showing internal server error in xampp server. When I compiled it in command line it's just displaying 'no debug' as result. What is it that i am doing wrong? The code is working fine without…
0
votes
1 answer

Using perl CGI.pm through multiple subroutines

So I am working on a school project where I have been asked to write perl cgi script to create a social net site. I have created multiple subroutines for different pages, but my problem is that when I try to execute each subroutine individually, it…
0
votes
1 answer

Reading from CGI.PM file by chunks

We have a file, sent from HTML form to CGI (perl) script. We know, that files came from HTML via CGI.PM are paged onto disk (as an alternative for RAM). And in this case I have a question: is it possible to read a file by chunks from that memory…
Arsenii
  • 655
  • 1
  • 8
  • 20
0
votes
2 answers

How can I read multiple cookies with Perl's CGI.pm?

I am using CGI.pm to write out cookies. Now during the course of the user using my site, other cookies are added to the "test.com" cookie set, (as shown in the broswer history) But now I want to log the user out, and "clean" the PC. Since I don't…
Cristofayre
  • 121
  • 1
  • 11
-1
votes
3 answers

include internal javascript in cgi.pm

I want to add jquery datepicker in cgi.pm file and want to add the script jquery tag inline for datepicker as it is not working in the external javascript file. how can this be added.. I have to use cgi.pm because I am told to do so at my workplace,…
Sanjay
  • 29
  • 1
  • 8
-1
votes
1 answer

populate value from database in select box based on another selectbox

I want to populate the values in database from one select box i.e. ostype to other select box(host_name). The values in host_name should get populated from the database. I have written the ajax code for that so that i don't have to refresh to…
himani
  • 9
  • 1