Here's the dirt

 
  All the code described on this site is right here. These samples will grow with time. Of course, if you have some samples you'd like to contribute, just drop me a line.

Note: This code is currently uncommented. If you want an explanation of the code, please see the accompanying "Gadget."

Java
Sneaky Pete
Pete is a minimal browser capable of making POSTs and GETs to the URI's of your choice. To configure Pete on where to go and what to ask for, you'll need to edit the source. Gadget


Bounce
Here's a limited but useful Web server demo that can be very instructive in learning the details of HTTP requests and request headers. Gadget


Kevin
Kevin is son of Bounce. He not only displays the browser's request headers, he actually retrieves and serves the requested page. Learn more about what this can tell you. Gadget
C/C++
paul2.c
Paul does via SSL what Sneaky Pete does via standard HTTP. He uses the OpenSSL library to make SSL connections to remote servers and perform GETS and POSTS. To make this monkey work, you'll need to compile and link paul2.c, request.c and ssl_sockets.c. Also part of the package are just plain paul.c and sockets.c, which will perform standard connections over HTTP. To understand all this, see the Gadget.

Perl
Form encrypt
Use PGP or GnuPG to encrypt the data from your Web forms and mail them to an address or save them securely on the Web server. Use a public key and your choice of strong ciphers, including Triple-DES, CAST-5, Blowfish and more. Batch-decrypt a whole pile of data or email messages. Flummoxed by crypto? The gadget explains it all.


Robot
This guy will take care of your dynamic domain name referencing needs via TSX, but he can easily be recoded to hand DHS and whatever other services spring up. Gadget


Screen scraper
A demo "Screen Scraper" or Snarf Gadget that grabs up to 50 of all the domain registrations owned by General Motors or registrant of your choice. It uses the HTTP GET protocol to "scrape" the information off the Web site and strip out the HTML. Gadget


Date validator
Validating a date via regular expressions is tough, and this piece of code proves it!. It may be more than you're looking for, but it works. And if you take the time to understand it, you'll be a leg up in your regex parsing. Gadget


Form re-filler
Ever need to put a user's data back in a form for validation, error correction, etc.? Here, in one complete Perl script, is code to substitute data values back into all HTML form elements. Gadget


Stepper
Introduces a "step" page in the CGI submission process that informs the user the form processing has already started and to please be patient. Useful for CGI's (or other server processes) that take a while to run. You'll need the initial form, and the CGI script, and the final processing script. You may also run a demo. For an explanation of all this, read the Gadget.








Home | Gadgets | Code | Links | Reads | Contact

Copyright © 1999, 2001, 2002 by John H. Byrd
All rights reserved.