PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
WebserviceWriteHTTPHeader (Function)
In french: WebserviceEcritEntêteHTTP
AjaxNot available
Adds an additional HTTP header to a request of a REST Webservice. This HTTP header will be returned to the client with the response during the next call to the REST Webservice.
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 with quotes
Name of HTTP header to write.
<Header Value>: Character string with quotes
Value (or content) of 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.
  • During successive calls to this function for the same HTTP header name, only the last value is taken into account.
Component : wd250awws.dll
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment