Re: Httpunit-develop digest, Vol 1 #1536 - 2 msgs

"Mithun Ruikar" <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
Thank you for reply,
But when i said about i am not getting response text same as original text,
i was using response.getText() itself.
My question is response.getText() is giving me text which is reordered and
slightly changed compared to text obtained when we say view source in IE
browser
So how to do this?

-- mithun


On 3/17/06, [email protected] <
[email protected]> wrote:
>
> Send Httpunit-develop mailing list submissions to
>        [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://lists.sourceforge.net/lists/listinfo/httpunit-develop
> or, via email, send a message with subject or body 'help' to
>        [email protected]
>
> You can reach the person managing the list at
>        [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Httpunit-develop digest..."
>
>
> Today's Topics:
>
>   1. how to get same response text as original file. (Mithun Ruikar)
>   2. Re: how to get same response text as original file. (Russell Gold)
>
> --__--__--
>
> Message: 1
> Date: Thu, 16 Mar 2006 12:00:05 +0530
> From: "Mithun Ruikar" <[email protected]>
> To: [email protected]
> Subject: [Httpunit-develop] how to get same response text as original
> file.
> Reply-To: [email protected]
>
> ------=_Part_3047_274175.1142490605435
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
> Content-Disposition: inline
>
> Hello ,
> I am using httpUnit to navigate to some url and  save source of html file
> obtained as response.
> But this response text has been reordered by httpUnit. ie. some tags are
> reordered and
> some attribute values are changed eq. in input tag style=3D"width:150;" is
> changed to
> width=3D"150".
> I read about httpUnit that it uses nekoHtml parser to parse html document.
> This nekoHTML supports some features to handle such things.
>
> Please tell how can i change settings of httpUnit to get exact response.
> Or if not possible please tell me any other API to get this.
>
> thank you
>
> -- mithun
>
> ------=_Part_3047_274175.1142490605435
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
> Content-Disposition: inline
>
> <span class=3D"gmail_quote"></span>
> <div style=3D"DIRECTION: ltr">
> <div>Hello , </div>
> <div>I am using httpUnit to navigate to some url and&nbsp; save source of
> h=
> tml file obtained as response.</div>
> <div>But this response text has been reordered by httpUnit. ie. some tags
> a=
> re reordered and </div>
> <div>some attribute values are changed eq. in input tag
> style=3D&quot;width=
> :150;&quot; is changed to </div>
> <div>width=3D&quot;150&quot;.</div>
> <div>I read about httpUnit that it uses nekoHtml parser to parse html
> docum=
> ent.</div>
> <div>This nekoHTML supports some features to handle such things.</div>
> <div>&nbsp;</div>
> <div>Please tell how can i change settings of httpUnit to get exact
> respons=
> e.</div>
> <div>Or if not possible please tell me any other API to get this.</div>
> <div>&nbsp;</div>
> <div>thank you</div></div>
> <div style=3D"DIRECTION: ltr"><span class=3D"sg">
> <div>&nbsp;</div>
> <div>-- mithun</div></span></div>
>
> ------=_Part_3047_274175.1142490605435--
>
>
> --__--__--
>
> Message: 2
> From: Russell Gold <[email protected]>
> Subject: Re: [Httpunit-develop] how to get same response text as original
> file.
> Date: Thu, 16 Mar 2006 04:56:04 -0500
> To: [email protected]
> Reply-To: [email protected]
>
>
> --Apple-Mail-1-987007358
> Content-Transfer-Encoding: 7bit
> Content-Type: text/plain;
>        charset=US-ASCII;
>        delsp=yes;
>        format=flowed
>
>
> On Mar 16, 2006, at 1:30 AM, Mithun Ruikar wrote:
>
> > Hello ,
> > I am using httpUnit to navigate to some url and  save source of
> > html file obtained as response.
> > But this response text has been reordered by httpUnit. ie. some
> > tags are reordered and
> > some attribute values are changed eq. in input tag style="width:
> > 150;" is changed to
> > width="150".
> > I read about httpUnit that it uses nekoHtml parser to parse html
> > document.
> > This nekoHTML supports some features to handle such things.
> >
> > Please tell how can i change settings of httpUnit to get exact
> > response.
> > Or if not possible please tell me any other API to get this.
>
> response.getText() returns the original text, without any parsing.
>
>
> --Apple-Mail-1-987007358
> Content-Transfer-Encoding: quoted-printable
> Content-Type: text/html;
>        charset=ISO-8859-1
>
> <HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; =
> -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Mar 16, 2006, =
> at 1:30 AM, Mithun Ruikar wrote:</DIV><BR =
> class=3D"Apple-interchange-newline"><BLOCKQUOTE type=3D"cite"><SPAN =
> class=3D"gmail_quote"></SPAN> <DIV style=3D"DIRECTION: ltr"> <DIV>Hello =
> , </DIV> <DIV>I am using httpUnit to navigate to some url and=A0 save =
> source of html file obtained as response.</DIV> <DIV>But this response =
> text has been reordered by httpUnit. ie. some tags are reordered and =
> </DIV> <DIV>some attribute values are changed eq. in input tag =
> style=3D"width:150;" is changed to </DIV> <DIV>width=3D"150".</DIV> =
> <DIV>I read about httpUnit that it uses nekoHtml parser to parse html =
> document.</DIV> <DIV>This nekoHTML supports some features to handle such =
> things.</DIV> <DIV>=A0</DIV> <DIV>Please tell how can i change settings =
> of httpUnit to get exact response.</DIV> <DIV>Or if not possible please =
> tell me any other API to get this.</DIV> =
> </DIV></BLOCKQUOTE><BR></DIV><DIV>response.getText() returns the =
> original text, without any parsing.</DIV><BR =
> class=3D"khtml-block-placeholder"></BODY></HTML>=
>
> --Apple-Mail-1-987007358--
>
>
>
> --__--__--
>
> _______________________________________________
> Httpunit-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/httpunit-develop
>
>
> End of Httpunit-develop Digest
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.