PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Operating mode of HTTPRequest/HTTPGetResult with a destination
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
HTTPDestination (Function)
In french: HTTPDestination
Indicates the backup file for the result of next HTTP request, run in the same thread.
Example
// Retrieve the HTML code of the www.windev.com page
HTTPDestination("C:\Temp\pcsoft.htm")
HTTPRequest("http://www.windev.com")
Syntax
<Result> = HTTPDestination(<File name>)
<Result>: Boolean
  • True if the file was created,
  • False otherwise. To get the details of the error, use ErrorInfo with the errMessage constant.
<File name>: Character string (with quotes)
Full path of file to create. The file is created, opened and locked when HTTPDestination is run. 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:
  • HTTPGetResult associated with the httpResult constant 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 : wd250com.dll
See also
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment