Header Property, read only of FormField class

Property, read only | Member of  ScriptUtils.FormField | Changes | Purchase | Download

Description

One of the multipart field header.

Syntax

vHeader = FormField.Header (Name as String, [CharSet as ConvertCodePages = CharSet])
 

Where Type Optional Default Description
 Name  String     Name of the field header 
 CharSet  ConvertCodePages  yes  CharSet  String or numeric (ConvertCodePages) expression that describes the character set of the property. 

Returns

String

Remarks

multipart/form-data usually has Content-Disposition and Content-Type headers.
multipart/related usually has Content-Type and Content-Length headers.

Examples

Multipart - enumerate field headers

  Dim Item, MP' As New FormParser
  Set MP = CreateObject("ScriptUtils.FormParser")

  MP.ProcessMultipartFile "F:\1\test\Seznam.mht"

  For Each Item In MP.Items
    echo "************* n of headers:" & (UBound(Item.Headers) + 1)
    echo Item.Name

    For Each h In Item.Headers
     echo "hname:" & h & ", value: " & Item.Header(h)
    Next

  Next

Sub Echo(co)
    Wscript.Echo TypeName(Co), Len(Co), Co
End Sub

See also

FormField.Headers

Other links for Header

Methods of FormField class

ContentCharSet, Save, SaveAs

Properties of FormField class

ByteArray, ContentDisposition, ContentTransferEncoding, ContentType, FileExt, FileName, FilePath, Header, Headers, HexString, CharSet, Index, InProgress, IsFile, Length, Name, RAWHeader, SourceLength, String, Value

ScriptUtils.FormField

One form field. Member of FormFields collection.

ScriptUtils

Huge ASP upload is easy to use, hi-performance ASP file upload component with progress bar indicator. This component lets you upload multiple files with size up to 4GB to a disk or a database along with another form fields. Huge ASP file upload is a most featured upload component on a market with competitive price and a great performance . The software has also a free version of asp upload with progress, called Pure asp upload , written in plain VBS, without components (so you do not need to install anything on server). This installation package contains also ScriptUtilities library. Script Utilities lets you create hi-performance log files , works with binary data , you can download multiple files with zip/arj compression, work with INI files and much more with the ASP utility.

© 1996 - 2011 Antonin Foller, Motobit Software | About, Contacts | e-mail: info@pstruh.cz


Other Motobit links:   IISTracer, real-time IIS monitor   ASP file upload - upload files to ASP. 
ActiveX/VBSScript registry editor  ActiveX NT User account manager  Export MDB/DBF from ASP Active LogFile  Email export  ActiveX/ASP Scripting Dictionary object