Einzelnen Beitrag anzeigen

static_cast

Registriert seit: 19. Okt 2003
Ort: Peine
300 Beiträge
 
#1

Indy TIdHTTP und Post, komisches ergebnis?

  Alt 19. Okt 2004, 11:49
Hi habe ein problem mit der Indy HTTP komponente und dem post.

Der code:

Delphi-Quellcode:
var
 SendData:TIdMultiPartFormDataStream;
begin
  SendData:=TIdMultiPartFormDataStream.Create;
  try
    SendData.AddFormField('action','noaction');
    SendData.AddFormField('data','testvalue');

    IdHTTP.Request.ContentType:=SendData.RequestContentType;
    Caption:=SendData.RequestContentType;

    Memo.Lines.Text := IdHTTP.Post('http://localhost/core.php',SendData);
  finally
    SendData.Free;
  end;
end;

Und das spuckt mir die phpinfo dazu aus...

Delphi-Quellcode:
PHP Variables

Variable Value
_REQUEST["%s"action"] noaction
_REQUEST["%s"data"] testvalue
_POST["%s"action"] noaction
_POST["%s"data"] testvalue

wieso ist denn da ein %s" drin? macht indy da irgendwas falsch?
Daniel M.
"The WM_NULL message performs no operation. An application sends the WM_NULL message if it wants to post a message that the recipient window will ignore."
  Mit Zitat antworten Zitat