Questions tagged [cgi]
Common Gateway Interface — a standard for webservers to invoke commands to handle HTTP requests. (For computer-generated imagery, use the [graphics] tag instead.)
13 questions
3
votes
1
answer
167
views
Program for creating custom directory listings
The following code was written to create custom directory listings for the Abyss Web Server. It attempts to provide an improved example of the included documentation for doing so in Python. However, ...
1
vote
1
answer
66
views
C lang CGI form update
Have posted here a while ago, I've read the answer and now I tried to apply the observations. This is the new code, I hope is it better than before. One thing I'm not sure if I used it properly is ...
2
votes
1
answer
77
views
C lang CGI form/string handle
Started playing with C and CGI forms.
Is this code ok? Can it be improved/optimized?
If I fill user with "user" and password with "pass" input in takelogin is ...
4
votes
2
answers
249
views
CGI script that reads or writes its height and weight configuration
UPDATES:
I'm looking for an answer that can answer the questions listed in the post. Moreover, this answer will not only continue my way of thinking, but also give feedback based on it. It's just like ...
4
votes
2
answers
286
views
CGI for htpasswd registration
I decided to go with a very simple CGI user registration program to pair with Apache's mod_auth_form wrapper around a private site. It was only just after I ...
25
votes
4
answers
3k
views
Perl CGI script to serve a PDF file
In a different post I showed the following Perl CGI script. Someone in the comments said that
"You're using a lot of very unperlish syntax, and I'd like to give you some feedback".
So, ...
3
votes
1
answer
244
views
Python CGI front-end for web service to perform machine translation
I am trying to optimize this python script that is used to process web requests for machine translation. The actual translation executable that is called is quite fast. Also, the perl scripts that are ...
6
votes
1
answer
245
views
CGI output gzip compression module
Edit: How should I interpret the silence? On a scale from 0 to 10 where 0 means "Bloody awful" and 10 means "Nothing to complain about".
I'm mainly concerned about readability and things I don't ...
2
votes
1
answer
2k
views
Avoiding "warning: Use of uninitialized value" when fetching an integer CGI parameter
I was using this code to fetch a CGI parameter:
$page = int(param('page'));
This sometimes results in:
...
4
votes
2
answers
915
views
CGI script for managing Unix passwords
All the services I run on my server are based on Unix accounts. Since most web services have their own users and perform all the account management separate from the actual system accounts, I created ...
2
votes
0
answers
4k
views
Dynamically create a table of input fields
I'm trying to dynamically create a table of input fields (two per field) that I will then send off to a Python script.
Here's the expected behaviour:
User chooses "manual entry," specifies rows, ...
5
votes
2
answers
7k
views
Bash CGI Upload File
I'm using the following Bash CGI to upload a file:
...
1
vote
1
answer
449
views
Perl CGI script to respond to erroneous Base64 image requests
I often get lines like this in my Apache error log:
File does not exist: /path/to/www/data:image/gif;base64,R0lGODlhBgAGAIAOAP/yH5BAEACAEALAAAAAAGGAYAAAIJhB0Xi5vOoFwFADs=
Obviously, this is due to ...