Scan HTML content for URLs and cURL them

Avatar

Avatar

szymons55769873

Avatar

szymons55769873

szymons55769873

25-02-2019

Hi

I'm working on a solution that would scan planned deliveries for URLs (in their HTML Source) and cURL those URLs and check their HTTP Response.

Goal is to avoid sending campaigns with broken URLs.

Now, I have the 2nd bit (cURLing) complete, however I cannot figure out how to obtain all the URLs (and img src URLs) for the cURL activity.

I've tried RegEx to check the [content/html/source] in nms:delivery and was working but it's not a recommended solution (safety wise) and for more complicated HTMLs it was malfunctioning.

How can I achieve this with javascript? Anybody else built similar solution?

View Entire Topic

Avatar

Avatar

szymons55769873

Avatar

szymons55769873

szymons55769873

25-02-2019

Jean,

could you explain/show please how do I achieve that "Published" status?

I created a test delivery with some HTML content (links included), but I cannot make it appear in the xtk:trackingUrl schema.