sourceforge.net

There are two differing descriptions of XMLHttpRequest,
the one currently supported in version 1.6 described at
http://developer.apple.com/internet/webcontent/xmlhttpreq.html
and another one at
http://xulplanet.com/references/objref/XMLHttpRequest.html.

The latter has at least one additional method (I
haven't done an exhaustive comparison) which therefore
causes htmlunit to fail since it is not defined.
Naturally I'm trying to test a page that uses it.
Copying the description from the page ...

void overrideMimeType ( AUTF8String mimetype )

Override the mime type returned by the server (if any).
This may be used, for example, to force a stream to be
treated and parsed as text/xml, even if the server does
not report it as such. This must be done before the
send method is invoked.

Arguments:
mimetype: The type used to override that returned
by the server (if any).

It would be nice if htmlunit supported this as well.

Read the original on sourceforge.net ↗