Autor Beitrag
zwerg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Mo 04.10.04 17:53 
Hallo,

ich sende daten per Post ein ein PHP Script, das funktioniert soweit auch ganz gut. Doch eigendlich muss ich nur die Daten an das script schicken nd sonst nichts. Jedoch wird der stream in eine datei gespeichert. Ziemlich sinnlos.

Aber den letzten parameter bei post einfach weglassen funktioniert auch nicht...

Ist es möglich post ohne stream zu fahren, oder zumindest das er in keine datei geschrieben wird?

Schonmal danke im vorraus für eure Antworten...

MFG.: ZWerg
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 05.10.04 14:05 
was nimmst du denn her ? indy ?
willst du nur "text" an das php script schicken oder dateien ?

_________________
In the beginning was the word.
And the word was content-type: text/plain.
zwerg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Di 05.10.04 17:42 
Ja genau über die Indy, sorry das ich das nicht erwähnt habe :oops:
Nein ich schicke nur Daten an das Script z.B. name=Franz nachname=schumacher usw.


aber es nützt mir nichts das ich den stream zurückbekomme und der auch noch in ne datei gespeichert wird.
zwerg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Mi 06.10.04 12:21 
Kann mir wirklich niemand helfen?
Das ist doch bestimmt etwas, was auch andere User interressieren könnte...

BITTE! Helft mir! Ich bin ein verlorenes Schaf!!! :) :P
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mi 06.10.04 14:15 
also:
die vars kannste an das PHP script recht einfach schicken. einfach mit ner stringlist.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
var SL:TStringlist;
res:string;
begin
try
   try
      Sl.add ('wert1=' + variable);
      Sl.add ('passwort=' + pass); // z.B.
      res := idhttp1.Post ('http://www.fs-location.de/check.php',SL);
    except
      application.MessageBox ( PChar ('Es ist ein Fehler aufgetreten'),PChar ('Fehler'),MB_ICONERROR+MB_OK);
    end;
finally
   sl.free
end;
im string res steht dann das drin, was das PHP script zurückgibt

_________________
In the beginning was the word.
And the word was content-type: text/plain.
zwerg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Mi 06.10.04 18:28 
Danke für die Antwort,
aber genau das funktioniert eben nicht bei mir,

wenn ich den letzten parameter von http1.post weglasse dann gibt delphi immer den Fehler:

Es gibt keine überladene.... (Rest dürfte bekannt sein)


Was ist falsch? Denn bei http.get funktioniert deine methode
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Do 07.10.04 11:06 
hast du ne alte indy version oder die nicht korrekt installiert ?

_________________
In the beginning was the word.
And the word was content-type: text/plain.
zwerg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Do 07.10.04 19:06 
matze hat folgendes geschrieben:
hast du ne alte indy version oder die nicht korrekt installiert ?


Ich hab die für die 6. Version von Delphi (ich glaue indy 9), und bei der installation kann man ja nicht viel falsch machen.

Bei dir funktioniert es?
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 08.10.04 19:03 
ja bei mir klappt das ohne probleme.
evtl holst du dir mal von der indy page die neueste 9er version und installierst sie drüber.

_________________
In the beginning was the word.
And the word was content-type: text/plain.