« Micro HTTP Client for the command line | Main | microhttp - Micro HTTP Client becomes a library - updated »

January 3, 2003

microhttp - Micro HTTP Client becomes a library

I decided that I liked the simplicity of microhttp so much, that I have created a library version out of it. The library provides all the simplicity of the command-line version for inclussion in HTTP::MHTTP. Now I have a light weight but fast set of functions for performing HTTP operations in Perl to do things like:
  http_init();
  http_add_headers(
                    'User-Agent' => 'HTTP-MHTTP1/0',
                    'Host' => 'localhost',
                    'Accept-Language' => 'en-gb',
                    'Connection' => 'Keep-Alive',
                  );
  http_reset();
  my $rc = http_call('GET', 'http://localhost/');
  warn "Status: ".http_status()."\n";
microhttp can be found at: microhttp. HTTP::MHTTP can be found at: HTTP::MHTTP.

Posted by PiersHarding at January 3, 2003 4:12 PM