Difference between revisions of "ClearPostData"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> procedure ClearPostData(const iHttp: Integer); </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Clears all ...") |
|||
| Line 43: | Line 43: | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Internet Functions]] | [[Category:Internet Functions]] | ||
| + | [[Category:HTTP Functions]] | ||
Latest revision as of 09:56, 4 July 2011
Definition
procedure ClearPostData(const iHttp: Integer);
Availability
SCAR Divi 3.00 > Current
Description
Clears all post variables assigned to the connection associated with the index iHttp in the HTTP connection resource manager.
Example
var
i: Integer;
begin
i := InitializeHTTPClient(True, True);
try
AddPostVariable(i, 'post1', 'Hello');
AddPostVariable(i, 'post2', 'World!');
WriteLn(PostHTTPPageEx(i, 'http://doc.scar-divi.com/post.php'));
ClearPostData(i);
AddPostVariable(i, 'newpost', 'Hi');
WriteLn(PostHTTPPageEx(i, 'http://doc.scar-divi.com/post.php'));
finally
FreeHTTPClient(i);
end;
end.Output:
---POST variables--- Name: post1; Value: Hello Name: post2; Value: World! ---POST variables--- Name: newpost; Value: Hi