cancel
Showing results for 
Search instead for 
Did you mean: 

Remote/Connecter set headers

drozes
Champ in-the-making
Champ in-the-making
Hi guys;
My webscript is hitting a remote API that requires me to set the accepted-language header on the call.
Anyone done this yet? Haven't had any luck on other forum posts.

Thanks for any help.
2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator
Hello,

the Connector interface defines its overloaded call methods with a parameter of type ConnectorContext. This is how you can provide headers, parameters and request content type for a remote call. This is only possible via Java web scripts though - you're out of luck for JavaScript backed ones as far as I can see, unless you provide a custom JavaScript extension.

Regards
Axel

drozes
Champ in-the-making
Champ in-the-making
Thanks Axel;
This will save me a lot of time.