Adding http request header to href link with coldfusion -
i scraping external website , using cfx_http5 tag data cfhttp
slow, cfx_http5
, not resolveurl, cfhttp resolveurl make url point same domain file coming
now need use cfx tag, 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 add code in coldfusion append url href tags
please guide
try this:
<cfset httpresult = replacenocase(httpresult, '<a href="', '<a href="http://theddomain.com/', 'all')>
Comments
Post a Comment