PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Replaces all the cookies stored for a domain:
Note: 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.
Versions 20 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 20
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 22 and later
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
New in version 22
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
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.
Versions 20 and later
WINDEVWEBDEV - Server codeAndroidAndroid Widget iPhone/iPadAjax

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.
New in version 20
WINDEVWEBDEV - Server codeAndroidAndroid Widget iPhone/iPadAjax

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.
WINDEVWEBDEV - Server codeAndroidAndroid Widget iPhone/iPadAjax

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.
  • AndroidAndroid Widget This function is available for the devices equipped with ARM processors. A fatal error occurs if this function is used with devices not equipped with ARM processors (x86, mips, ...). This function is available for the devices equipped with ARM processors or using an ARM emulation. Otherwise (and on the Samsung Galaxy Tab 3 tablet), a fatal error will occur.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Windows Mobile wp230com.dll
Linux wd230com.so
Android wd230android.jar
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment