Specify a custom HTTP header.
custom_header=header
HTTP headers are of the form header-name: header-value.
None
When you specify custom HTTP headers, the client includes the headers with every HTTP request it sends. To specify more than one custom header, use custom_header multiple times, using the semicolon (;) as a divider. For example: custom_header=header1:value1; customer_header=header2:value2
Custom headers are useful when your synchronization client interacts with a third-party tool that requires custom headers.
For information about how to set network protocol options with dbmlsync, see CommunicationAddress (adr) extended option.
For information about how to set network protocol options with UltraLite, see Network protocol options for UltraLite synchronization streams.
Some HTTP proxies require all requests to contain special headers. The following example sets a custom HTTP header called MyProxyHdr to the value ProxyUser in an embedded SQL or C++ UltraLite application:
info.stream = "http"; info.stream_parms = TEXT( "host=www.myhost.com;proxy_host=www.myproxy.com; custom_header=MyProxyHdr:ProxyUser"); |
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |