Questions tagged [cgi]

1) The Common Gateway Interface is a standard defining how web server software can delegate web page generation to a stand-alone application or executable file. 2) Computer Generated Imagery

This tag is mostly used for the Common Gateway Interface (CGI), which is a standard (see RFC 3875: CGI Version 1.1) that defines how web server software can delegate the generation of web pages to a stand-alone application, an executable file. Such applications are known as CGI scripts; they can be written in any programming language, although scripting languages are often used.

Less commonly on Stack Overflow, CGI may also be used to tag questions regarding Computer Generated Imagery.

See also

5191 questions
1
vote
1 answer

Doing DSPSMTF to display a stmf on browser but it all junk and it is downlading the file instead of displaying it. Also any idea about CONTTYPES file?

I am using CGI DSPSTMF command to display stmf file on web browser. I am copying a spool file to a stmf file using CPYSPLF *STMF option. Once copied i am passing IFS location to DSPSTMF command but it is going to download automatically and when i…
1
vote
1 answer

Get Customer Review with Net::Amazon::Attribute::Review

All i'm trying to get the items reviews from amazon using Net::Amazon::Attribute::Review I have tried everything in my low knowledge of perl to try to get it to work but I can't seem to get it. Any help would be…
Jason Doe
  • 25
  • 3
1
vote
0 answers

NGINX fastcgi cannot get script name

I am setting up fastcgi on nginx. I sort of have it working. Inside my location block if i have factcgi_param SCRIPT_FILENAME /var/www/cgi-bin/hello.cgi; it works. However I don't want to hard code the link. Setting fastcgi with the below…
user3525290
  • 1,557
  • 2
  • 20
  • 47
1
vote
1 answer

Why am i getting 403 error when i submit a processing request?

I start python local server on ubuntu, server.py: from http.server import HTTPServer, CGIHTTPRequestHandler server_address = ("", 8000) httpd = HTTPServer(server_address, CGIHTTPRequestHandler) httpd.serve_forever() it's start and open…
ANTON
  • 21
  • 2
1
vote
0 answers

mod_perl and CGI behavior

This has got to be something silly I'm doing wrong. It's such a newbie type problem. The original script is something that sits and waits for a 3rd party to connect and POST some xml to it, it takes that xml, does some validation, and stores it in…
1
vote
1 answer

Flask CGI htaccess 404 not found

I'm trying to get a minimum flask app up and running on a shared server so I tried following the basic flask quickstart instructions with the CGI deployment instructions (python 3.8.2). That was giving me the error descibed here and here; I couldn't…
user760900
  • 298
  • 1
  • 12
1
vote
4 answers

How to upload binary files in mod_perl with CGI.pm?

I have a big piece of production code, that works. But after I setup a new environment in virtual machine I have one issue -- everytime I need to upload a binary file it become messed up with unicode conversions. So there is a sub, where issue…
kravitz
  • 973
  • 2
  • 10
  • 22
1
vote
2 answers

How to define a global variable with Mason

Intro I tried to set up mason in my Ubuntu desktop. It is a very simple set up, but I still had problems, after reading parts of masonbook.com & mansonhq.com I hope someone can give me a hint. Please see below for more detail. Local server Ubuntu…
kenpeter
  • 7,404
  • 14
  • 64
  • 95
1
vote
2 answers

Python CGI how to save requested information securely?

I have a web page that uses a Python cgi script to store requested information for later retrieval by me. As an example, the web page has a text box that asks "What is your name?" When the user inputs his name and hits the submit button, the web…
dave
  • 683
  • 1
  • 8
  • 17
1
vote
1 answer

Developing mixed C++ and C++/CLI for CGI and WPF

This is related to this question, but given the direction of the answers, I figured it would be better to ask this question separately. I need to develop a class library that can be both used in CGI (long story, sigh) and referenced by c#. Since…
Eric_H
  • 35
  • 7
1
vote
1 answer

How to search from mysql DB with related to selected drop down list in mojolicious perl

I have student ordered information data stored in DB. I want to search those orders in between by dropdown selected from-to date and time-wise. Normally, I can search all data from DB but could not work when I select the dropdown from-to date and…
raju
  • 53
  • 3
1
vote
1 answer

"Python quit unexpectedly" when running in 32-bit mode on Snow Leopard

I have been unable to force my python to run in 32 bit mode, which I need for it to import matplotlib. I got this information from my Apache log (the python script is being executed by a Perl CGI script) which says "no appropriate 64-bit…
Chas
  • 11
  • 2
1
vote
2 answers

Permission denied while accessing Hypertable in CGI program

I'm trying to develop a Web app in Perl using Hypertable. Sample code: #!/usr/bin/perl -w use strict; use warnings; use CGI; use CGI::Carp qw/fatalsToBrowser warningsToBrowser/; use CGI::Session ('-ip_match'); use Hypertable::ThriftClient; use…
1
vote
1 answer

Unable to run find and xargs in a cgi script

I have a cgi script which get request from the html javascript and runs some system command then response back to the javascript. Now in my cgi script and in the one of the set function I have the below code of lines. $shred1 = `/usr/bin/find…
charan
  • 81
  • 5
1
vote
5 answers

Privilege Escalation in Web Environment for File Access

I have a situation where I would like to elevate the permissions I have in a web environment so that I can access a serial device. The specific case is where I have a web interface for configuring a modem that comes up on /dev/ttyUSB[0-9]. Zero or…
Jerub
  • 41,746
  • 15
  • 73
  • 90
1 2 3
99
100