Autor Beitrag
Heiko
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Mi 14.12.05 09:34 
Hi @all,

ich habe folgenden Quelltext:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
procedure TForm1.Button1Click(Sender: TObject);
var
  Postdata: TStringList;
  ReturnMemoryStream: TMemoryStream;
  Correct: String;
begin
  Postdata:=TStringList.Create;
  ReturnMemoryStream:=TMemoryStream.Create;
  Postdata.Add('Passwort=Test');
//  try
    MySQLIdHTTP.Post('killprocess.ki.funpic.de/passwort.html', Postdata, ReturnMemoryStream);
    ReturnMemoryStream.Position:=0;
    if ReturnMemoryStream.Read(Correct, 1)=1 then
    begin
      ShowMessage('Correct');
    end
    else
    begin
      ShowMessage('Not Correct');
    end;
{  except
    ShowMessage('MySQL-Fehler');
  end;}

  FreeAndNil(Postdata);
  FreeAndNil(ReturnMemoryStream)
end;


Wenn ich nun den Quelltext ausführe, kommt immer eine Fehlermeldung '' (sagt also nix aus). Wisst ihr vlt. woran es liegen könnte? (Indy10 und HTML-Skript gibt keine Fehlermeldung zurück ;) ).
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 14.12.05 18:14 
schon mal probiert ein http:// vor deine URL zu schreiben ?

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Heiko Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Mi 14.12.05 21:20 
:autsch: war wieder viel zu einfach. Internet verbinde ich einfach meistens mit http wenn nix anderes angegeben ist ;)
Heiko Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Do 15.12.05 08:55 
Mhm, ich habe jetzt trotzdem noch ein Problem was mit dem Post zusammenhängt. Hinter dem Quelltext meckert er irgendwie mit einer Zugruiffsverletztung rum, allerdings weiß ich nicht warum und wo (auf jeden Fall kommt der Fehler erst nach dem freigeben). Habe ich irgendetwas vergessen im Zusammenhang mit Post (ohne der Zeile funktioniert es tadellos)?
Heiko Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Do 15.12.05 16:55 
Bug gefunden. Ich habe mal statt String Char genommen, wo das Ergebnis eingelesen wird, und schon gings ;).