#include <mw/chttpformencoder.h>
| class CHTTPFormEncoder : public CBase |
| Public Member Functions | |
|---|---|
| ~CHTTPFormEncoder() | |
| IMPORT_C void | AddFieldL(const TDesC8 &, const TDesC8 &) |
| virtual TBool | GetNextDataPart(TPtrC8 &) |
| IMPORT_C CHTTPFormEncoder * | NewL() |
| virtual TInt | OverallDataSize() |
| virtual void | ReleaseData() |
| virtual TInt | Reset() |
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.
| Parameter | Description |
|---|---|
| aFieldName | A name. This must not be empty |
| aFieldValue | A value. This may be an empty descriptor |