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
PageReadHeaderHTTP (Function)
In French: PageLitEntêteHTTP
Reads and returns one or more HTTP headers received by the current page (these headers are sent by the client to the server in the current request).
Example
sReferer is string = PageReadHeaderHTTP("Referer")
Syntax

Reading a header identified by its name Hide the details

<Result> = PageReadHeaderHTTP(<Header to Read>)
<Result>: Character string
  • Value of the header.
  • Empty string ("") if the header is not found.
<Header to Read>: Character string with quotes
Name of the header to read.

Reading a header identified by its subscript Hide the details

<Result> = PageReadHeaderHTTP(<Subscript>)
<Result>: Character string
  • Value of the header. The name of the header is returned in uppercase characters and the dashes are replaced by "underscores" (the source name of the HTTP header as it was sent by the client is not available).
  • Empty string ("") if there is no header to read.
<Subscript>: Integer
Subscript of the header to read.
Remarks
  • In a dynamic site, the headers are the HTTP headers received when connecting to the site.
  • To list all the headers, use the syntax by subscript until the function returns an empty string.
Components
WEBDEV - Server code wd230page.dll
Linux wd230page.so
Minimum required version
  • Version 21
Comments
Click [Add] to post a comment