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
  • Operating mode of HTTPRequest/HTTPGetResult with a destination
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
HTTPDestination (Function)
In french: HTTPDestination
Indicates the backup file for the result of next HTTP request, run in the same thread.
Example
// Récupération du code HTML de la page Web www.pcsoft.com
HTTPDestination("C:\Temp\pcsoft.htm")
HTTPRequest("http://www.pcsoft.fr")
Syntax
<Result> = HTTPDestination(<File name>)
<Result>: Boolean
  • True if the file was created,
  • False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<File name>: Character string
Full path of the file to be created. The file is created, opened and locked when HTTPDestination is executed. It will be unlocked at the end of HTTP request.
Remarks

Operating mode of HTTPRequest/HTTPGetResult with a destination

If a file for saving the result of the HTTP request is specified by HTTPDestination:
  • when HTTPGetResult is used with the httpResult constant, it always returns an empty string ("").
  • HTTPGetResult associated with the httpHeader constant always returns the header of the HTTP response. This header is not saved in the destination file: only the data is saved.
When the request is over, the destination is canceled and HTTPRequest operates as usual.
Component: wd300com.dll
See also
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help