Skip to main content

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.)

3 votes
1 answer
167 views

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, ...
Noctis Skytower's user avatar
1 vote
1 answer
66 views

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 ...
Martzy's user avatar
  • 33
2 votes
1 answer
77 views

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 ...
Martzy's user avatar
  • 33
4 votes
2 answers
249 views

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 ...
Andy Lin's user avatar
4 votes
2 answers
286 views

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 ...
Iiridayn's user avatar
  • 143
25 votes
4 answers
3k views

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, ...
amblabs's user avatar
  • 351
3 votes
1 answer
244 views

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 ...
Steve3p0's user avatar
  • 151
6 votes
1 answer
245 views

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 ...
Oskar Skog's user avatar
2 votes
1 answer
2k views

I was using this code to fetch a CGI parameter: $page = int(param('page')); This sometimes results in: ...
Leo Galleguillos's user avatar
4 votes
2 answers
915 views

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 ...
jecxjo's user avatar
  • 151
2 votes
0 answers
4k views

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, ...
htedr's user avatar
  • 21
5 votes
2 answers
7k views

I'm using the following Bash CGI to upload a file: ...
Juicy's user avatar
  • 501
1 vote
1 answer
449 views

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 ...
W3Coder's user avatar
  • 113