Lightstreamer .Net Standard Client 4.0.0
ContentsIndexHome
PreviousUpNext
ConnectionInfo.HttpExtraHeaders Property

A list of name-value pairs representing extra http headers to be attached to every request made by the library. 

Null can be set to reset the http headers to the default ones. Each time this value is set, previously specified collections are completely overridden. 

Note that some headers are refused by the library (namely Accept, Connection, Content-Length, Content-Type, Date, Host, If-Modified-Since, Range, Transfer-Encoding) while others might be ignored or refused by .NET itself. Refused headers will result in connection failures. 

The default setting is null. 

Note that it is also possible to specify a Cookie header, its value to be specified in the form "cookieName=cookieValue". The header can contain different cookies separated by semicolons (e.g.: "cookie1=val1; cookie2=val2"). 

 

C++
public: __property IDictionary<String, String> HttpExtraHeaders;
C#
public IDictionary<String, String> HttpExtraHeaders;
Visual Basic
Public Property HttpExtraHeaders() As IDictionary<String, String>