Changes

848 bytes added ,  18:46, 9 July 2013
Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x001200C4] |- | 1 | HTTP context handle |- | 2 | Form name buffer size, including..."
=Request=
{| class="wikitable" border="1"
|-
! Index Word
! Description
|-
| 0
| Header code [0x001200C4]
|-
| 1
| HTTP context handle
|-
| 2
| Form name buffer size, including null-terminator.
|-
| 3
| Form value buffer size, including null-terminator.
|-
| 4
| (FormNameSize<<14) <nowiki>|</nowiki> 0xC02
|-
| 5
| Form name data pointer
|-
| 6
| (FormValueSize<<4) <nowiki>|</nowiki> 10
|-
| 7
| Form value data pointer
|}

=Response=
{| class="wikitable" border="1"
|-
! Index Word
! Description
|-
| 0
| Header code
|-
| 1
| Result 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 [[HTTPC:BeginRequest|sent]]. When using this command, [[HTTPC:AddRequestHeader]] must be used to add a "Content-Type: application/x-www-form-urlencoded" header.