Autor Beitrag
FIN
Hält's aus hier
Beiträge: 7



BeitragVerfasst: Sa 08.02.03 12:33 
Hallo erstmal,

hab ein kleines Problemchen...
Wenn ich mit Idhttp von chat.msn.com/find.msnw?cat=RM quellcode runterladen will, zeigt er mir einen anderen code an. Ist ganz egal, ob ich es mit post oder get versuche. Hat es was mit cookies zu tun?
Kann mir einer sagen wie ich das richtig machen soll?
Danke schon mal...
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 09.02.03 15:02 
schreinb mal den code mit dem dus gemcht hast !!

_________________
In the beginning was the word.
And the word was content-type: text/plain.
FIN Threadstarter
Hält's aus hier
Beiträge: 7



BeitragVerfasst: So 09.02.03 20:36 
Danke erstmal für Deine Antwort!
Ich habe das mit Get probiert, aber ich bekomme direkt eine Fehlermeldung. Ich habe keine Ahnung warum...Mit anderen Seiten geht das.
ausblenden volle Höhe 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:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient,
  IdHTTP, StdCtrls;

type
  TForm1 = class(TForm)
    Button1: TButton;
    IdHTTP1: TIdHTTP;
    procedure Button1Click(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
var responseStream: TFileStream;
begin
  responseStream := TFileStream.Create('c:\test.txt', fmCreate);
  IdHTTP1.Get('http://chat.msn.com/find.msnw?cat=RM', responseStream);
  responseStream.free;
end;

end.


Danke...

Moderiert von user profile iconTino: Code-Tags hinzugefügt.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 09.02.03 21:06 
es wäre gut wenn du auch noch schreibst was für eine fehlermeldung kommt. ist die von deinem Programm oder von der site oder was ??

Grundregel:
Wenn was nicht so läuft wies dir passt dann am besten den fehlerhaften code posten und die fehlermeldungen möglichst ausführlich !!!

_________________
In the beginning was the word.
And the word was content-type: text/plain.
FIN Threadstarter
Hält's aus hier
Beiträge: 7



BeitragVerfasst: So 09.02.03 23:27 
Da kommt beim Aufruf EIDProtocolReplyError. Meldung '302 Moved'.
Ich kann damit nichts anfangen....
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 10.02.03 17:32 
das ist der HTTP Fehlercode für Moved Temporarily das heisst dass die URL irgendwohin umgeleitet wird.
aber gibt es da nicht einen eigendschft der INDY kompo sowas wie allowredirect ???

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