Tag Archives: mod_perl

mod_perl 1 blows chunks

At $WORK, I’m looking at a web service built on mod_perl 1 / Apache 1. The service takes XML as input and returns XML as output. So far, so good. Unfortunately, whilst I was testing with curl, I found something odd: curl -s -v -T- -H’Content-Type: text/xml;charset=UTF-8′ http://localhost/api < input.xml curl -s -v -T- -H’Content-Type: […]

mod_perl 2 not ready yet

I’ve spent nearly three days this week trying to port one of our sites to Apache 2.2 and mod_perl 2.0.2 (from Apache 1.3.33). It should be a relatively simple exercise thanks to the porting notes available: Upgrading to 2.2 from 2.0 Upgrading to 2.0 from 1.3 A Reference to mod_perl 1.0 to mod_perl 2.0 Migration. […]

Servlets vs mod_perl

I’ve been looking at the Java servlets stuff for a couple of days now and it’s clear that it bears a remarkable similarity to mod_perl. In mod_perl, you define handler() which gets passed a $r object to deal with the request and send a response. Servlets make things a little more explicit. You make doGet() […]