I'm trying to find a solution for an HTTPGet problem. As I am using a Cloudpage as my email's content source, the following code works fine with the exception of the ability to track clicks. This code pulled from this article otherwise works well.
<script runat="server"> Platform.Load("core","1"); var url = "https://pub.s6.exacttarget.com/34xemphnkok"; var headerNames = ["Accept-Encoding"]; var headerValues = ["gzip, deflate, sdch, br"]; var response = HTTP.Get(url, headerNames, headerValues); Write(response.Content); </script>
I've found others have used WRAP HTTPGET URLS via this:
%%[ var @getStatus, @getURL, @content set @getURL = "http://www.example.com" set @content = HttpGET(@getURL, false, 2, @getStatus) set @content = Replace(@content,'href="http','href="httpgetwrap|http') ]%% %%=TreatAsContent(@content)=%%%
However, I am running into problems combining the two and was hoping someone out there has encountered this situation and has a solve.