|Subject:||Re: TidHTTP Post bug or misuse?|
|Posted by:||Remy Lebeau (Indy Team) (firstname.lastname@example.org)|
|Date:||Fri, 11 Aug 2006|
"Jérémy Reynaud" <…@keepcore.com> wrote in message
> To isolate the problem, I create a simple application with 2 buttons, 1 to
> post with TStringList, the other to post with TIdMultiPartFormDataStream,
> the response is logged in a TMemo. The URL is a PHP page that print the
> content of the $_POST variable (print_r($_POST);).
Posting multipart data is VERY different than posting TStringList data. The
HTTP request is formatted very differently. Are you sure you are handling
the data properly on the server side to begin with?
> When I click on the 1st button (TStringList), I have this in the TMemo:
> When I click on the 2nd one (TIdMultiPartFormDataStream ), I have this in
> the TMemo:
> If I click again on the 1st one, I have:
> Seems no more variables are posted...
Then the problem is likely in your server script. TIdHTTP requests are
completely separate from each other. They have no effect on each other.
Just to be sure, though, have you tried clearing the TIdHTTP.Request
property before calling Post()?
TidHTTP Post bug or misuse? posted by Jérémy Reynaud on Fri, 11 Aug 2006