PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Operating mode of HTTPRequest/HTTPGetResult with a destination
  • Limits
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.
Versions 16 and later
WEBDEV - Server codePHP This function is now available for the PHP sites.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVJava This function is now available for the Java applications.
Android This function is now available for the Android applications.
New in version 16
WEBDEV - Server codePHP This function is now available for the PHP sites.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVJava This function is now available for the Java applications.
Android This function is now available for the Android applications.
WEBDEV - Server codePHP This function is now available for the PHP sites.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVJava This function is now available for the Java applications.
Android This function is now available for the Android applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
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 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
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 find out the error details, use ErrorInfo associated 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.
Universal Windows 10 App

Limits

  • The proxy used is the one of Internet Explorer.
  • The certificates cannot be ignored.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Windows Mobile wp230com.dll
Java wd230java.jar
Linux wd230com.so
Android wd230android.jar
See also
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment