AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Comunicación / Funciones HTTP
  • Operating mode of HTTPRequest/HTTPGetResult with a destination
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
HTTPDestination (Function)
Indicates the backup file for the result of next HTTP request, run in the same thread.
Ejemplo
// Retrieve the HTML code of the www.windev.com page
HTTPDestination("C:\Temp\pcsoft.htm")
HTTPRequest("http://www.windev.com")
Sintaxis
<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.
Observaciones

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.
Componente: wd300com.dll
Ver también
Versión mínima requerida
  • Versión 12
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local