Autor Beitrag
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: So 27.04.03 16:40 
Hallo Leute, ich habe hier ein Problem.

Wenn ich mit einer IdHTTP Komponente und der Methode Get eine Seite als String einer Variable übergebe und in der URL der Seite eine Zahl vorkommt, bleibt das Programm stehen. Man kommt nur noch über Strg+F2 heraus. Bei allen anderen URLs ohne Zahlen im Namen klappt es einwandfrei.

Kann mir jemand sagen, wo der Fehler liegt?

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
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 28.04.03 16:29 
probier mal, den string der nach der URL kommt, also das was du per GET übertragen willst HTTP komform zu kodieren.
oder papp mal die AntiFreeze Kompo auf dein Form. Die ist unter INDY Misc.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 28.04.03 17:43 
Das Problem dürfte eignetlich nicht auftreten. Ich hab bei IdHttp.Get schon mit Zahlen und sogar Umlauten ohne Probleme gearbeitet.
Wenn die Datei größer ist ist das IdAntiFreeze der richtige Vorschlag, denn solange der Download läuft reagiert das Programm nicht. Versuch es mal mit kleineren Dateien.
derDoc Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Mo 28.04.03 18:57 
Danke, ich werde das mal mit dem IdAntiFreeze ausprobieren.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
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 28.04.03 19:25 
generell solltest du aber den string immer codieren !

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

Win Vista Prof
D2007 Prof
BeitragVerfasst: Di 29.04.03 13:57 
Nur so aus Interesse: Was meinst du mit kodieren?

Die Datei, die ich haben will ist eine HTML Datei, in die per PHP dynamisch etwas integriert wird. Diese intergrierte Version möchte ich per IdHTTP.Get als String bekommen.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
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 29.04.03 15:47 
also wenn du per Get URL folgendes übergibst: www.test.de/script.php?name=der matze

coderiert sieht das so aus:
www.test.de/script.php?name=der%20matze

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

Win Vista Prof
D2007 Prof
BeitragVerfasst: Di 29.04.03 19:54 
Ach so meinst du das.

Bei mir wäre die Adresse ungefähr so aufgebaut:

ist.mir-egal.de/etwas.php?symbol=HEN3.ETR

Aus irgend einem Grund geht das so nicht mit IdHTTP.Get

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.