I am trying to create a webclient SL client which will call an API. However, I need to pass multiple headers to the API, and I am only given one string with which to pass the headers. I am wondering if there is a way of adding multiple strings for headers to the client, or if there is a way of passing multiple headers in just one string.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to create a webclient SL client which will call an API. However, I need to pass multiple headers to the API, and I am only given one string with which to pass the headers. I am wondering if there is a way of adding multiple strings for headers to the client, or if there is a way of passing multiple headers in just one string.
http spec, https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 refers to this other spec,
Standard for ARPA Internet Text Messages
https://www.ietf.org/rfc/rfc0822.txt
section 3.1.2
"a field-name followed by a colon (":"), followed by a
field-body, and terminated by a carriage-return/line-feed."
so try
'field1:body1$r$nfield2:body2$r$n'