Autor Beitrag
Biarchiv
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 688



BeitragVerfasst: Mi 10.01.07 22:01 
Hallo,

hab folgenden code:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
Edit1.text := 'http://www.mydom.dey/file.txt
cat := '
This %26 Category::best'; //%26 = &

mystring := idhttp1.get('
http://www.domainer.dey/add.php?padurl=' + Edit1.text + '&padcat=' + cat);


Geht leider nicht mit indy aufzurufen.
Bekomme: idhttp1.get + http/1.1 400 Bad Request

Mit der TWebBrowser ist es kein Problem... Nur hackt der anders wo...
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 10.01.07 23:12 
lass dir den kompletten Request mal ausgeben. Ich vermute mal, das was in dem Edit1 dann drinsteht ist nicht HTTP-Konform kodiert !
Biarchiv Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 688



BeitragVerfasst: Mi 10.01.07 23:29 
Hallo,

nehme mal an die ::.
'This %26 Category::best'; //%26 = &

Wie kann ich das am besten Converten?
in Edit1 steht immer eine gültige URL zu einer TXT Datei.
Manina
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 44

Win 7 Pro
RAD Studio 2010 Pro
BeitragVerfasst: Do 11.01.07 01:00 
Manche Seiten akzeptieren auch keine Blanks in den Parametern. Ich ersetze die immer durch %20 ... 8)

_________________
Gates, oder Gates nicht ?