AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones específicas de la Web / Funciones de páginas
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Otros
Procedimientos almacenados
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).
Ejemplo
sReferer is string = PageReadHeaderHTTP("Referer")
// Exemple de récupération de tous les entêtes HTTP reçus
// Parcours des entêtes HTTP reçus
nIndiceEnTete is int
sUnEnTete is string
sTousLesEnTetes is string

LOOP
// Entête suivant
nIndiceEnTete ++
sUnEnTete = PageReadHeaderHTTP(nIndiceEnTete)
// Entête lu?
IF sUnEnTete = "" THEN BREAK  // plus d'entête
sTousLesEnTetes += [CR] + sUnEnTete
END
Info(sTousLesEnTetes)
Sintaxis

Reading a header identified by its name Ocultar los detalles

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

Reading a header identified by its index Ocultar los detalles

<Result> = PageReadHeaderHTTP(<Subscript>)
<Result>: Character string
  • Header value. The header name is returned in uppercase characters and the dashes are replaced with "underscore" characters (the initial name of HTTP header as it was sent by the client is not available).
  • Empty string ("") if there is no header to read.
<Subscript>: Integer
Index of the header to be read.
The first header to be read has index 1.
Observaciones
  • 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.
Componente: wd290page.dll
Versión mínima requerida
  • Versión 21
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 07/03/2024

Señalar un error o enviar una sugerencia | Ayuda local