[Webtest] Using different Web Protocols?

George Policello George Policello" <gpolicello@mmetrics.com
Wed, 2 Apr 2008 09:36:27 -0700


Follow-up:

I try to pick various types of public links for testing since that is
easier than trying to create every option for myself.

>From the below note, I would have expected the page content to be passed
through for the link I was trying. However, it failed with the following
message.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Message

Current response is not an HTML page but of type text/vnd.wap.wml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

George

-----Original Message-----
From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com] On Behalf Of Marc Guillemot
Sent: Wednesday, April 02, 2008 2:25 AM
To: webtest@lists.canoo.com
Subject: Re: [Webtest] Using different Web Protocols?

Hi,

HtmlUnit builds a different subclass of Page depending on the mime type
of the response. Only 2 types "family" are parsed: html and xml, text
and others are just read as received.

With this explanations, can you precise what you want to do?

Cheers,
Marc.
--=20
Blog: http://mguillem.wordpress.com


George Policello wrote:
> Does anyone have a way to put various handlers on incoming pages,
>     <invoke ...>?
>=20
> That is, I would like to use some trigger, for example, mime type, to
> select a different parser for things such as
>=20
> * WML or mime =3D=3D text/vnd.wap.wml
> * text/plain
> * WapMultipart
> * WapXhtml
> * etc.
>=20
> My guess is that this has to be done at the HtmlUnit level but if
> someone can offer an example, it would be most appreciated.
>=20
> Thanks for any suggestions,
> George
>=20
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>=20


_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest