Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi Indy TIdHTTP und Post, komisches ergebnis? (https://www.delphipraxis.net/32135-indy-tidhttp-und-post-komisches-ergebnis.html)

static_cast 19. Okt 2004 11:49


Indy TIdHTTP und Post, komisches ergebnis?
 
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?

mirage228 19. Okt 2004 11:58

Re: Indy TIdHTTP und Post, komisches ergebnis?
 
Hi,

eventuell hilft dir dieser Thread weiter:

http://www.delphipraxis.net/internal...+post&start=15

mfG
mirage228

static_cast 19. Okt 2004 12:01

Re: Indy TIdHTTP und Post, komisches ergebnis?
 
ne hat sich auch gerade erledigt, hab ebend im forum gesehen es gibt ne neue indy hab die mal installiert und jetzt gehts, hatte noch die 9.0.14 also eine älter, da war wohl irgendwas schräg...

aber trozdem danke!


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:48 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz