ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / HTTP functions
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
Retrieves the cookies read: 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
// Request toward the google.com site
HTTPRequest("www.google.com")
 
// Read the array of cookies returned by the site
arrCookie is array of Cookies
arrCookie = HTTPCookieGet(".www.google.com")
Info("The www.google.com site currently stores " + arrCookie.Occurrence + " cookies locally")
Syntax

Retrieving the cookies read via a call to HTTPRequest Hide the details

<Result> = HTTPCookieGet(<Domain>)
<Result>: Array of Cookie variables
List of cookies stored in memory for the specified domain.
<Domain>: Character string
Domain for which the list of cookies currently stored in memory will be retrieved.
WINDEVWEBDEV - Server codeAndroidAndroid Widget iPhone/iPadAjax

Retrieving the cookies read via a call to HTTPSend Hide the details

<Result> = HTTPCookieGet(<HTTP request> , <Domain>)
<Result>: Array of Cookie variables
List of cookies stored in memory for the specified domain.
<HTTP request>: httpRequest variable
Name of httpRequest variable for which the cookies will be listed.
<Domain>: Character string
Domain for which the list of cookies currently stored in memory will be retrieved.
WINDEVWEBDEV - Server codeAndroidAndroid Widget iPhone/iPadAjax

Retrieving the cookies read via an httpResponse variable Hide the details

<Result> = HTTPCookieGet(<HTTP response>)
<Result>: Array of Cookie variables
List of cookies stored in memory for the specified domain.
<HTTP response>: httpResponse variable
Name of httpResponse variable for which the cookies will be listed.
Component: wd290com.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help