AnsweredAssumed Answered

How to parse tag value outside HTML body?

Question asked by patilavinash85 on Oct 1, 2015
Latest reply on Oct 1, 2015 by patilavinash85

Hi,

I wanted to know is there any way to parse tag values outside the HTML/XML body? My REST service response is as below. I'm trying to to capture last line of the html response (i.e.value of 'Response URL' marked in bold).

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">

<HTML><HEAD><TITLE>Bad Request</TITLE>

<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>

<BODY><h2>Bad Request - Invalid URL</h2>

<hr><p>HTTP Error 400. The request URL is invalid.</p>

</BODY></HTML>

 

 

<!-- Response URL: https://www.hdcardbenefits.com?ProspectID=7B5B2AD90514439285B5B2657BAE3434&mmc=vanity-_-%2Fcardbenefits%2Fenroll-_-SEP15; -->

<!-- Response URL: https://citi.bridgetrack.com/usc/_redir.htm?BTData=BcI.B.gAB4f.J.BkC.QsUH.bdh.ir*.pyy.Bj.PP.u*.E&mmc=vanity-_-/cardbenefits/enroll-_-SEP15; -->

Outcomes