PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
PageWriteHeaderHTTP (Function)
In French: PageEcritEntêteHTTP
Adds an additional HTTP header that will be returned to the browser:
  • during the next function for page display (PageDisplay, PageRefresh, ...),
  • during the automatic return of the current page at the end of the current action.
Example
PageWriteHeaderHTTP("X-Frame-Options", "deny")
Syntax
PageWriteHeaderHTTP(<Header Name> , <Value>)
<Header Name>: Character string (with quotes)
Name of the header to write.
<Value>: Character string (with quotes)
Value (or content) of the 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 PageWriteHeaderHTTP will be ignored.
  • A second call to PageWriteHeaderHTTP with the same header name will overwrite the previous value.
Components
WEBDEV - Server code wd230page.dll
Linux wd230page.so
Minimum required version
  • Version 21
Comments
Click [Add] to post a comment