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

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -