ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Web services
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
WebserviceWriteHTTPHeader (Function)
In french: WebserviceEcritEntêteHTTP
AjaxNot available
Adds an additional HTTP header to a request of a REST web service. This HTTP header will be returned to the client with the response next time the REST web service is called.
Example
// Allows the call to the webservice from any site in a browser.
WebserviceWriteHTTPHeader("Access-Control-Allow-Origin", "*")
Syntax
WebserviceWriteHTTPHeader(<Name of HTTP Header> , <Header value>)
<Name of HTTP Header>: Character string
Name of the HTTP header to write.
<Header value>: Character string
Value (or content) of the HTTP header to write.
Remarks
  • The WEBDEV Application Server forces the value of some HTTP headers ("Content-Length", for example). In this case, the value written by WebserviceWriteHTTPHeader will be ignored.
  • When this function is called successively for the same HTTP header name, only the last value is taken into account.
Component: wd290awws.dll
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/10/2024

Send a report | Local help