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
Returns the value of a cookie received further to an HTTP request.
Remark: The cookies read and sent by HTTPRequest are only stored in memory in the application. They are not related to the cookies of Web browsers installed on the computer.
Example
// Effectue une requête HTTP
HTTPRequest("www.monsite.fr")
// Affiche le cookie d'identification renvoyé par le serveur
sID is string = HTTPCookieRead(".monsite.fr", "ID")
Info("Cookie d'identification = " + sID)
Syntax

Syntax that can be used with HTTPRequest Hide the details

<Result> = HTTPCookieRead(<Domain> , <Name>)
<Result>: Character string
  • Value of cookie.
  • Empty string ("") if the cookie does not exist. In this case, the ErrorOccurred variable is set to True.
<Domain>: Character string
Name of domain for which the cookie was received.
<Name>: Character string
Name of cookie.
Versions 20 and later
WEBDEV - Server codeAjax

Syntax that can be used with HTTPSend Hide the details

<Result> = HTTPCookieRead(<HTTP request> , <Domain> , <Name>)
<Result>: Character string
  • Value of cookie.
  • Empty string ("") if the cookie does not exist. In this case, the ErrorOccurred variable is set to True.
<HTTP request>: httpRequest variable
Name of the Variable httpRequest for which the Cookie should be read.
<Domain>: Character string
Name of domain for which the cookie was received.
<Name>: Character string
Name of cookie.
New in version 20
WEBDEV - Server codeAjax

Syntax that can be used with HTTPSend Hide the details

<Result> = HTTPCookieRead(<HTTP request> , <Domain> , <Name>)
<Result>: Character string
  • Value of cookie.
  • Empty string ("") if the cookie does not exist. In this case, the ErrorOccurred variable is set to True.
<HTTP request>: httpRequest variable
Name of the Variable httpRequest for which the Cookie should be read.
<Domain>: Character string
Name of domain for which the cookie was received.
<Name>: Character string
Name of cookie.
WEBDEV - Server codeAjax

Syntax that can be used with HTTPSend Hide the details

<Result> = HTTPCookieRead(<HTTP request> , <Domain> , <Name>)
<Result>: Character string
  • Value of cookie.
  • Empty string ("") if the cookie does not exist. In this case, the ErrorOccurred variable is set to True.
<HTTP request>: httpRequest variable
Name of the Variable httpRequest for which the Cookie should be read.
<Domain>: Character string
Name of domain for which the cookie was received.
<Name>: Character string
Name of cookie.
Remarks
To use HTTPCookieRead, the management of cookies must have been enabled by HTTPCookieManage.
Component: wd270com.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment