Autor Beitrag
Hippo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 49



BeitragVerfasst: Sa 26.08.06 16:37 
Hallo,

ich würde gerne per Programm einen Gästebucheintrag machen ohne die Seite aufzurufen. Ich will also Nick, Passwort und Text an den Server senden ohne Browser.
Außerdem würde ich gerne die Antwort des Servers erhalten und somit auswerten können.

Hat jemand eine Idee, wie das geht? Wie sollte man vorgehen? Bin für jede Antwort dankbar.


Ich verwende übrigens Delphi 6.
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Sa 26.08.06 16:49 
Dazu müsstest du dir wohl die Suche in: Delphi-Forum, Delphi-Library INDY Komponenten holen und installieren, und dir dann wahrscheinlich idHTTP.Post angucken.

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
Hippo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 49



BeitragVerfasst: Fr 01.09.06 15:39 
Hab mir jetzt Delphi 2005 PE runtergeladen und da wird behauptet, dass die schon installiert sind.
Wie kann ich auf diese Komponenten zugreifen? Wo finde ich die?
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Fr 01.09.06 17:21 
der idHTTP müsste sich unter dem register Indy Clients befinden, aber mit der IDE von D2k5 bin ich nicht vertraut... :(

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
Hippo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 49



BeitragVerfasst: Sa 02.09.06 16:20 
Hab mir die jetzt runtergeladen und installiert.

Soweit so gut.


Da gibts auch eine idHTTP-Komponente. Nur ich hab damit noch nie gearbeitet und finde auch keine Hilfen dazu.

Wie ist denn der Aufbau? Wie muss ich da rangehen um etwas zu senden?

Welche Schritte sind dazu notwendig?
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Sa 02.09.06 17:49 
user profile iconJayEff hat folgendes geschrieben:
Dazu müsstest du dir wohl die Suche in: Delphi-Forum, Delphi-Library INDY Komponenten holen und installieren, und dir dann wahrscheinlich idHTTP.Post angucken.

Suche in: Delphi-Forum, Delphi-Library IDHTTP POST

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Sa 02.09.06 20:48 
Mal eine Frage, wenn ichzu skeptisch bin, verzeihs mir, nur ich bin halt auch ein geplagter Admin einer kleinen Seite.

Was ist der Sinn, dieses Programms? Willst du automatisch Einträge in Gästebücher erstellen, so alla Spam? Wie genau willst du das umsetzen?

Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN
Hippo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 49



BeitragVerfasst: So 03.09.06 13:12 
Ne, soll kein Spammprogramm werden. Abgesehen davon, gibts da eh eine Sperre gegen zu viele Einträge.

Hatte schon befürchtet, dass das hier danach klingt, ist es aber net.
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: So 03.09.06 18:56 
user profile iconHippo hat folgendes geschrieben:
Ne, soll kein Spammprogramm werden. Abgesehen davon, gibts da eh eine Sperre gegen zu viele Einträge.

Hatte schon befürchtet, dass das hier danach klingt, ist es aber net.


Dann iss ja ok :)

Du könntest es ja auch mit einem TWebbrowser versuchen. In der Suche findest du 100% ein ergebnis für Formular ausfüllen, oder so.

Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN
Hippo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 49



BeitragVerfasst: Mi 06.09.06 16:25 
So, jetzt hats geklappt. Nur eine Frage hätte ich noch.

Wenn man nicht im Internet ist, versucht das Programm die ganze Zeit das zu senden und bricht dann irgendwie ab, kann man dagegen etwas tun?
Hab schon try...finally benutzt. Kann man irgendwie eine Zeit angeben, wie lange das Programm versuchen soll zu senden?

Ansonsten fällt mir nur ein zu prüfen, ob eine Internetverbindung steht, aber ist ja doof, wenn der Server down ist.
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Mi 06.09.06 18:28 
Ich geh ma Glaskugeln kaufen ;) *schnellundunauffälligverkriech*

_________________
Programmers never die, they just GOSUB without RETURN
DarkLord05
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 449

WinXP Pro SP2
Opera; Delphi 3 Pro; Delphi 2005, Turbo Delphi, dev-c++, Eclipse, MS Visual Studio .NET 2003, MS Visual C++
BeitragVerfasst: Mi 06.09.06 18:43 
user profile iconalias5000 hat folgendes geschrieben:
Ich geh ma Glaskugeln kaufen ;) *schnellundunauffälligverkriech*


*g* Er will damit sagen das du uns nen paar informationen geben musst. Z.B. wie die Fehlermeldung aussieht (jaja, rot auf weißem rund xD). Was drinsteht und viell. auch wo er hängen bleibt. Kannst einfach den Quelltext hier Posten in Delphi tags [ delphi] und [ /delphi]. Damit hat man hier nen besseren überblick ;)
Hippo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 49



BeitragVerfasst: Mi 06.09.06 20:26 
Mein Problem ist, dass wenn keine Internetverbindung besteht, das Programm das nie zu Ende führt, und wenn mans beenden will, es abbricht.

Hab schon versucht zu überprüfen, ob eine Internetverbindung besteht, aber entweder erkennt er mich nicht als online, wenn ich online bin oder wenn ich offline bin, wirds bei einem anderen Code als online erkannt.

Kann man die Komponente irgendwie einstellen, dass sie nach einer Zeit selber merkt, dass es keinen Sinn hat?



Edit: Hat sich geklärt. Wenn mans compiliert, öffnet sich eine Fehlermeldung, dass keine Internetverbindung besteht.