CHTTPFormEncoder Class Reference
class CHTTPFormEncoder : public CBase |
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()
CHTTPFormEncoder | ( | ) | [private] |
~CHTTPFormEncoder()
IMPORT_C | ~CHTTPFormEncoder | ( | ) | |
Member Functions Documentation
AddFieldL(const TDesC8 &, const TDesC8 &)
IMPORT_C void | AddFieldL | ( | 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
Parameters
const TDesC8 & aFieldName | A name. This must not be empty |
const TDesC8 & aFieldValue | A value. This may be an empty descriptor |
AppendData(const TDesC8 &)
void | AppendData | ( | const TDesC8 & | aData | ) | [private] |
AppendSpecialChar(TUint8)
void | AppendSpecialChar | ( | TUint8 | aChar | ) | [private] |
Appends a non alpha numeric character by converting it to HH where HH is the Hexadecmial representation of the character
ConstructL()
void | ConstructL | ( | ) | [private] |
GetNextDataPart(TPtrC8 &)
OverallDataSize()
TInt
| OverallDataSize | ( | ) | [virtual] |
ReleaseData()
void | ReleaseData | ( | ) | [virtual] |
Member Enumerations Documentation
Enum THTTPFormEncoderState
Enumerators
EAllowAppendData | |
ESuppliedSize | |
ESupplyingData | |
EDataReleased | |
Member Data Documentation
THTTPFormEncoderState
iState
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.