Siag Office

Shohei Mail

Webresolve

Pen

Dwatch

XMagick

Myhtml

Simple Database Library

Sdbsiod

mod_log_sdb

mod_sql_sdb

Sdbgrey

Ulric's Router Construction Kit

neXtaw

Mowitz

Kylie

O3read

Ucron

Parsecgi

Mr Big


Ulric's stuff


IPv6 Certification Badge for ulriceriksson
 

A lightweight HTML parser that actually works

The input is parsed into a tree which is then processed recursively to produce a single list of boxes.

And then what?!

Here's a whole browser:

  1. Start with a url given on the command line.
  2. Parse the url.
  3. Use http to deliver the url into a cache file. The name of the file is returned to the main loop.
  4. The file is parsed into a tree.
  5. The tree is displayed.
  6. References are listed.
  7. The user enters a number or ^D to quit.
  8. The reference is combined with the current url to make a new one.
  9. Continue with 1.
Looks simple, eh? Let's do it!

Done: line mode browser in under 1000 lines.

Download over HTTP


#!/bin/sh echo "Content-type: text/html" echo echo ""
                                                                                                                                                                                                                                                                               
 

Valid HTML 4.01! Powered By ...?
Google