ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Web service functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
WebserviceWriteHTTPHeader (Function)
In french: WebserviceEcritEntêteHTTP
AjaxNot available
Adds an additional HTTP header to a request to a web service (REST or SOAP). This HTTP header will be returned to the client with the response the next time the web service is called (REST or SOAP).
Example
// Autorise l'appel au webservice depuis n'importe quel site dans un navigateur.
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: wd300awws.dll
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help