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
Replaces all the cookies stored for a domain: 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
// Reloads the cookies saved during the previous session
CookieInfo is string = fLoadText("MyYahooCookies.xml")
MyCookies is array of Cookies
Deserialize(MyCookies, CookieInfo, psdXML)
 
// Replaces the cookie found in memory by the ones read in the file
HTTPCookieManage(True)
HTTPCookieReplace(".yahoo.com", MyCookies)
 
// Performs an HTTP request
HTTPRequest("www.yahoo.com")
Syntax

Replacing all cookies (HTTPRequest) Hide the details

HTTPCookieReplace(<Domain> , <Cookies>)
<Domain>: Character string
Domain for which the array cookies will be used.
<Cookies>: Array of Cookie variables
New list of cookies that will be applied to the domain.
WEBDEV - Server codeAjax

Replacing all cookies (HTTPSend) Hide the details

HTTPCookieReplace(<HTTP request> , <Domain> , <Cookies>)
<HTTP request>: httpRequest variable
Name of httpRequest variable for which the cookies will be replaced.
<Domain>: Character string
Domain for which the array cookies will be used.
<Cookies>: Array of Cookie variables
New list of cookies that will be applied to the domain.
Remarks
The cookies for a domain are limited to 20 cookies of up to 4KB each.
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