PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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
WebserviceReadHTTPHeader (Function)
In french: WebserviceLitEntêteHTTP
AjaxNot available
Reads the HTTP header received during a call to a webservice (SOAP or REST). These HTTP headers are sent by the client to the server in the current request.
Example
// Valide l'origine de la requête (protocole CORS)
sOrigine is string = WebserviceReadHTTPHeader("Origin")
// Validation de l'origine
...
Syntax

Reading the HTTP header identified by its name Hide the details

<HTTP header> = WebserviceReadHTTPHeader(<Name of header to read>)
<HTTP header>: Character string
Value of HTTP header. The header is formatted as follows:
  • The header name is returned in uppercase characters.
  • The dashes are replaced with "underscore" characters (the source name of the HTTP header as it was sent by the client is not available).
  • An empty string ("") is returned if there is no other header to read.
<Name of header to read>: Character string
Name of header to read.

Reading the HTTP header identified by its subscript Hide the details

<HTTP header> = WebserviceReadHTTPHeader(<Subscript>)
<HTTP header>: Character string
Value of HTTP header. The header is formatted as follows:
  • The header name is returned in uppercase characters.
  • The dashes are replaced with "underscore" characters (the source name of the HTTP header as it was sent by the client is not available).
  • An empty string ("") is returned if there is no other header to read.
<Subscript>: Integer
Subscript of header to read. To read all the HTTP headers, increment this subscript until the function returns an empty string.
Component: wd270awws.dll
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment