CHTTPFormEncoder Class Reference

#include <mw/chttpformencoder.h>

class CHTTPFormEncoder : public CBase

Inherits from

  • CHTTPFormEncoder

    Detailed Description

    A data supplier class that is used to build up data that is to be encoded to application/x-www-form-urlencoded.

    A client will create an instance of this class and add name/value pairs. They then use this as the data supplier for the body of an http request that is a forms submission.

    The name and value must both be supplied in the correct character encoding that you want to send to the server. This then gets url encoded.

    Constructor & Destructor Documentation

    ~CHTTPFormEncoder ( )

    IMPORT_C~CHTTPFormEncoder()

    Member Function Documentation

    AddFieldL ( const TDesC8 &, const TDesC8 & )

    IMPORT_C voidAddFieldL(const TDesC8 &aFieldName,
    const TDesC8 &aFieldValue
    )
    Adds a field to the data. A field consists a name and value pair
    leave
    KErrNoMemory There was not enough memory
    leave
    KErrArgument aFieldName was empty
    panic
    Will panic if called after the first data has been supplied or OverallDataSize has been called
    ParameterDescription
    aFieldNameA name. This must not be empty
    aFieldValueA value. This may be an empty descriptor

    GetNextDataPart ( TPtrC8 & )

    TBool GetNextDataPart(TPtrC8 &aDataPart)[virtual]

    NewL ( )

    IMPORT_C CHTTPFormEncoder *NewL()[static]

    OverallDataSize ( )

    TInt OverallDataSize()[virtual]

    ReleaseData ( )

    voidReleaseData()[virtual]

    Reset ( )

    TInt Reset()[virtual]