HTTPC:AddPostDataAscii

HTTPC:AddPostDataAscii

Request #

Index WordDescription
0Header code [0x001200C4]
1HTTP context handle
2Form name buffer size, including null-terminator.
3Form value buffer size, including null-terminator.
4(FormNameSize<<14) | 0xC02
5Form name data pointer
6(FormValueSize<<4) | 10
7Form value data pointer

Response #

Index WordDescription
0Header code
1Result code

Description #

This URL-encodes the specified “name=value” data, then adds it to the POST data which will be uploaded once the request is sent. When using this command, HTTPC:AddRequestHeader must be used to add a “Content-Type: application/x-www-form-urlencoded” header.