NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Thys on July 15, 2019, 05:30:25 AM

Title: NetWebServiceMethod - setting CustomHeader for multiple values
Post by: Thys on July 15, 2019, 05:30:25 AM
Hi,

Just to make sure, when I setup multiple headers in a NetWebClient object, is the following correct?

net.CustomHeader = 'Content-Type: application/json<13><10>Authorization=1234'

Content-Type and Authorization being the two headers to set up.

Thys
Title: Re: NetWebServiceMethod - setting CustomHeader for multiple values
Post by: DonRidley on July 16, 2019, 01:48:35 AM
The NetWebClient has a specific method for the Content-Type header and I'm about 99% sure threre's one for the Authorization.   You could use <13,10> instead of <13><10>.  Overall, looks ok to me.

Don
Title: Re: NetWebServiceMethod - setting CustomHeader for multiple values
Post by: Thys on July 16, 2019, 01:50:38 AM
Thanks Don. I confirmed yesterday that it works correctly this way to add multiple header values.