0

I am scraping external website and using cfx_http5 tag to get data as cfhttp is very slow, so with cfx_http5, it does not do the resolveurl, with cfhttp it do the resolveurl so make the url point to same domain from where file is coming

now i need to use the cfx tag, but all my url's coming as:

with cfx_http5

<a href="details.cfm?acb=1>cick</a>

with cfhttp:

<a href="http://theddomain.com/details.cfm?acb=1>cick</a>

so how can i add a code in coldfusion to append this url to all the href tags

please guide

cfsam
  • 5
  • 3

1 Answers1

0

Try this:

<cfset httpResult = ReplaceNoCase(httpResult, '<a href="', '<a href="http://theddomain.com/', 'all')>

Jake Munson
  • 306
  • 3
  • 12