#177 text/html support for servletrunner


hi all,
it seems like there's no way so far to set the WebResponse's content-type when using ServletRunner.

HttpUnitOptions.setDefaultContentType() doesn't seem to work neither.

it would be really useful having HttpUnitOptions also configure ServletRunner responses.

thanks a lot.

Jacopo Franzoi, SourceSense



  • Wolfgang Fahl

    Wolfgang Fahl - 2008-11-05


    thank you so much for your feature request feedback. I'll happily work on this issue based on a JUnit testcase showing the expected behaviour.


  • Wolfgang Fahl

    Wolfgang Fahl - 2008-11-05

    Dear httpunit user!

    Thank you for your feature request. We appreciate the time and effort you are putting into this.

    Please supply a testcase with the expected result for the feature you are asking for and we'll look into implementing it. For a start you might want to get the trunk version from the
    subversion repository (see https://sourceforge.net/svn/?group_id=6550\)
    and have a look at the source code of some of the more than 700 JUnit based testcase in there.

    When you are ready you might want to attach the testcase (and if you already have started implementing it also the actual code) to your feature request.

    This should give you a clue on what a proper testcase for httpunit looks like. The main communication about further details of the development is via the httpunit developer mailinglist. You are most welcome to sign up via

    The httpunit developer team

    (Russell and Wolfgang as of 2008-03)

  • Wolfgang Fahl

    Wolfgang Fahl - 2008-11-05
    • assigned_to: nobody --> wolfgang_fahl

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks