12-14-2016
Sorry, that - and the entire rest of the common gateway interface - is something a web server does for you.
10 More Discussions You Might Find Interesting
1. Programming
Hi Folks
I am not a c programmer .But i need help in writing a program which can do this any ideas on how to go about it .
i start a server on the target server where files need to be copied
start-server -port 5006 & ---start the server and listen it on a partcular port
on the source... (2 Replies)
Discussion started by: linuxdba
2 Replies
2. UNIX for Advanced & Expert Users
I'd like to do a data transfer without encryption but with a guarantee that my data comes from a legit source. I'm thinking something that uses a public key scheme to sign the data.
Does anyone know of something like that?
Thanks!
-Pileofrogs (1 Reply)
Discussion started by: pileofrogs
1 Replies
3. Shell Programming and Scripting
Is there a way how to react on the message a client sent to the server?
I would like as the client sent message to server: "get information such and such" and server would answer.
Thank you for reply! (6 Replies)
Discussion started by: MartyIX
6 Replies
4. UNIX for Advanced & Expert Users
Hi all,
When using netcat to transfer the data over socket, if no connection is established, how long will netcat keep the data; will it discard the "oldest" data ?
Say for example I use "Some Command | netcat -l -p port", the command I use will generate a lot of output constantly, while no... (2 Replies)
Discussion started by: qiulang
2 Replies
5. UNIX and Linux Applications
Please direct me to the right forum tree if i am in the wrong section for this.
i have netcat on a unix machine and there is no man nc or man netcat available.
my command i am using is:
cat $FILE1 | netcat -h $PRINTER -p 9100
(-h -p -d are the only flags available in this version of... (3 Replies)
Discussion started by: dunpealslyr
3 Replies
6. Solaris
hello guys, i want to install netcat on my solaris. after i tar and gunzip netcat i'm confuse what do i must to do ? please help me to install netcat on my solaris. I'm beginner :( (2 Replies)
Discussion started by: praset
2 Replies
7. Linux
Hello,
Thank you very much for the line nc -lp <port> . I tried to run simple chat session with nc as it's shown in catonmatDOTorg but failed miserably with that syntax inspite of opening port 7777 by iptables . But your command example is working nicely.
So a bagful of thanks :))
Only one... (0 Replies)
Discussion started by: vectrum
0 Replies
8. Shell Programming and Scripting
Hi;
I have a url like
http://localhost:8080/examples/jsp/dates/nextPageToPost.jsp?name=ajay&password=pas&sex=Male&check=on&nationality=USA&description=aa&submit=submit
in which i want to use nc for http post for parameters like "name","password"....etc
can neone please help me how to do that... (3 Replies)
Discussion started by: ajaypadvi
3 Replies
9. IP Networking
Hi all,
I know my question is regarding Windows and not Linux, but I simply need people who know Netcat pretty well and I'm guessing here is a good place for that. So on with my question.
I'm doing some research, and I was playing around with netcat on a WinXP VM but I can't seem to get... (0 Replies)
Discussion started by: MrCrumbs
0 Replies
10. UNIX for Advanced & Expert Users
Currently I run a number of network tests using netcat that checks for an open port on a remote IP-address, using this syntax:
netcat -v -w 5 -z 107.249.95.5 4488
For some reason, the netcat command above is hanging (although others work fine), but a telnet is showing a valid connection like... (4 Replies)
Discussion started by: ckmehta
4 Replies
cgi(5) Programmer's Manual cgi(5)
NAME
cgi - Common Gateway Interface
DESCRIPTION
The Common Gateway Interface is a way to create dynamic web pages. It defines rules for interaction between a program and the web server
while the server talks to the client. There are some ways to use it.
ENVIRONMENT
Normally the webserver sets several environment variables to give some information to the CGI program so it can determine various stuff.
AUTH_TYPE
This reflects the authentification method used to validate a user.
CONTENT_LENGTH
The length of the data in bytes passed to the CGI program through standard input. This is used by the POST method.
CONTENT_TYPE
The MIME type of the query data, such as "text/html", optional.
DOCUMENT_ROOT
This reflects the document root directory of the webserver.
GATEWAY_INTERFACE
Reflects the version of the Common Gateway Interface that the server is using
HTTP_ACCEPT
A comma separated list of MIME type that the client is willing to accept.
HTTP_FROM
The email address of the user issuing the information request. This is not supported by most browsers.
HTTP_REFERER
Reflects the URL from which this CGI program was accessed.
HTTP_USER_AGENT
The name, version and libraries of the browser making the request. This information can be used to determine if the browser is
capable of graphics and is able to display frames and tables.
PATH_INFO
This shows extra information that was passed to the CGI program via command line. Normally it's empty or non-existent.
PATH_TRANSLATED
The translated path on the local filesystem.
QUERY_STRING
This variable refers to additional arguments that were appended to the CGI program - normally with the '?' sign.
REMOTE_ADDR
This refers to the host from which the information request was issued, as IP number.
REMOTE_HOST
This refers to the host from which the information request was issued.
REMOTE_USER
The authenticated name of the user.
REQUEST_METHOD
This refers to the method with which the information request was issued. Normally this is either GET or POST.
SCRIPT_NAME
The virtual name of the script being executed.
SERVER_NAME
The server's hostname or IP number. This may be used to determine the correct paths or resulting HTML code for CGI programs that
are used on the same machine for several servers.
SERVER_PROTOCOL
This is the name and version of the information protocol the request came in with. Normally this is "HTTP/1.0" or "HTTP/1.1".
SERVER_PORT
This refers to the TCP/IP port on which the webserver is running.
SERVER_SOFTWARE
This reflects the name and revision of the webserver software.
AUTHOR
This CGI library is written by Martin Schulze <joey@infodrom.org>. If you have additions or improvements please get in touch with him.
SEE ALSO
cgiDebug(3), cgiHeader(3), cgiSetType(3), cgiSetHeader(3), cgiGetValue(3), cgiGetVariables(3).
CGI Library 6 April 2008 cgi(5)