Back to product page

Filename property (HttpResponse)


Holds filename where body is stored.

Type

A String value

Syntax

  • Basic
object.Filename [= value]
The Filename(object,value) syntax has these parts:
objectAn expression evaluating to an object of type HttpResponse.
valueA String value.

Remarks

This is the property where wodHttpDLX holds the filename of the file that will be stored. If it is not specified, wodHttpDLX will automatically generate temporary file as storage space to save received content (which you can then access either through this Filename or through Body property). If wodHttpDLX does this, it will also delete this temporary file as soon as you request new content from the server.

Best place to decide if you will let wodHttpDLX make temporary file, or to save resource directly in your predefined file (which will not be deleted by wodHttpDLX) is HeadersDone event - the place where you can see what will be received, and you can decide how to handle it.

Platforms

Windows