You need to sign in to do that
Don't have an account?

Multiple headers in HttpRequest?
Quick question. If want to perform an HttpRequest but need to pass multiple headers...how do I do that?
request.setHeader('API-KEY', APIKEY);
request.setHeader('ACCEPT', 'text/xml');
Does line 2 overwrite line 1?
line 2 would not overwrite line one, as long as the header name isn't the same, which is isn't in your example. so you're good.
All Answers
line 2 would not overwrite line one, as long as the header name isn't the same, which is isn't in your example. so you're good.
Excellent - thank you!!
And Paul, in case you have any idea about this one...http://boards.developerforce.com/t5/Apex-Code-Development/Why-won-t-this-code-work/td-p/214803 Just bringing it to your attention.
Thanks.