Highlighted

Classic - HTTPRequest Authentication

Avatar

Avatar

campaignu539109

Avatar

campaignu539109

campaignu539109

31-07-2018

Hello, is there a way to centrally add authentication headers to all HTTP requests made by Campaign Classic? I am able to use the HttpClientRequest and do something like request.Headers["foo"] = bar but say for example within the HTML Content of a Delivery Template, I want to use the Include > URL option, I have no way to access the HttpClientRequest object in that case.

To get the necessary authentication headers, I need to use an execCommand() to call an external application, but this isn't available in all scripts e.g. Delivery Message nor is it efficient to keep calling my application for the header information every time I make a request, it has a TTL of 7 days.

I am using Adobe Campaign Classic v. 6.1.1.

Thank you.

Replies

Highlighted

Avatar

Avatar

wodnicki

MVP

Avatar

wodnicki

MVP

wodnicki
MVP

07-01-2019

Hi,

You can put a forwarding proxy between Campaign and the internet, using iptables to redirect traffic through it.

The alternative is execCommand, which isn't too bad. HttpClientRequest is just libcurl.

Thanks,

-Jon