AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Delphi Indy TIdHTTP und Post, komisches ergebnis?
Thema durchsuchen
Ansicht
Themen-Optionen

Indy TIdHTTP und Post, komisches ergebnis?

Ein Thema von static_cast · begonnen am 19. Okt 2004 · letzter Beitrag vom 19. Okt 2004
Antwort Antwort
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
Benutzerbild von mirage228
mirage228

Registriert seit: 23. Mär 2003
Ort: Münster
3.750 Beiträge
 
Delphi 2010 Professional
 
#2

Re: Indy TIdHTTP und Post, komisches ergebnis?

  Alt 19. Okt 2004, 11:58
Hi,

eventuell hilft dir dieser Thread weiter:

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

mfG
mirage228
David F.

May the source be with you, stranger.
PHP Inspection Unit (Delphi-Unit zum Analysieren von PHP Code)
  Mit Zitat antworten Zitat
static_cast

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

Re: Indy TIdHTTP und Post, komisches ergebnis?

  Alt 19. Okt 2004, 12:01
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!
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
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:23 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