Skip to content

paiyetan/JavaCgiBinaryStream

Repository files navigation

Code snippets of web cgi programmes. Help to understand the interactions between http clients and servers.

[Usage]

Redhat-like Linux Distribution
# cd /var/www/cgi-bin/
# git clone git://github.com/weijianwen/JavaCgiBinaryStream.git jcgi
(or, if you are my collaborators, USE: git clone git@github.com:weijianwen/JavaCgiBinaryStream.git jcgi )

[Browse index.html]
http://localhost/cgi-bin/jcgi/index.html

[cgihello] - Call cgihello to print "hello, world."
http://localhost/cgi-bin/jcgi/cgihello

[cgiimage] - Call cigimage to load demo.jpg and transport it to the browser via HTTP
http://localhost/cgi-bin/jcgi/cgiimage

Try some cgi by yourself.

Tips:
Q: How to view the interaction process between web browser and HTTP server in Wireshark?
A: Use this filter: " (ip.addr eq $IP_CLIENT) and (ip.addr eq $IP_SERVER) and http "

About

Some web cgi demos written in Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published