ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / HTTP functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Replaces all the cookies stored for a domain: Note Cookies read and sent by the HTTPRequest function are only stored in the application's memory. They are not related to the cookies of Web browsers installed on the computer.
Example
// Recharge les cookies sauvés lors de la session précédente
InfoCookies is string = fLoadText("MesCookiesYahoo.xml")
MesCookies is array of Cookie
Deserialize(MesCookies, InfoCookies, psdXML)

// Remplace les cookies en mémoire par ceux relus dans le fichier
HTTPCookieManage(True)
HTTPCookieReplace(".yahoo.com", MesCookies)

// Fait une requête HTTP
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.
WINDEVWEBDEV - Server codeAndroidAndroid Widget iPhone/iPadAjax

Replacing all cookies (HTTPSend) Hide the details

HTTPCookieReplace(<HTTP request> , <Domain> , <Cookies>)
<HTTP request>: httpRequest variable
Name of the 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: wd300com.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help