Autor Beitrag
JustusJonas
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 222



BeitragVerfasst: Mi 15.06.05 07:17 
Hallo Leute,

ich habe ein Problem mit einem meiner Programme. Leider hat sich auf der Seite was geändert und es gibt ein htaccess-Zugriffskontrolle.
Nun komme ich mit meinem Programm (TWebBrowser) nicht mehr auf die Seite. Es gibt zwar die Möglichkeit die Benutzerdaten über die URL zu übergeben (depp:depp@www.depp.de). Wenn ich mit dem Browser so auf die Seite zugreife bekomme ich noch mal eine Bestätigung, die ich mit "OK" bestätigen muss.
Mein Programm hingegen schmiert ab, wenn ich so weit komme! :(

Hat jemand eine Idee wie ich das Problem lösen könnte?

Greetz

Moderiert von user profile iconTino: Titel erweitert.
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Mi 15.06.05 07:30 
Kommt denn eine Fehlermeldung oder "schmiert" es einfach so ab?

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
JustusJonas Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 222



BeitragVerfasst: Mi 15.06.05 09:03 
Schmiert mit einer Extension ab! :(

Habs jetzt mit der Indy-Komponente idHTTP probiert. Auch da kommt eine Extension! :(

Greetz
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Mi 15.06.05 09:07 
Extension oder meinst du Exception?!

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
JustusJonas Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 222



BeitragVerfasst: Mi 15.06.05 09:59 
hihi...meine natürlich Exception.

Greetz
Stübi
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 331

Win XP, Win 2000, Win ME
D5 Ent, D7 Prof, D2005 PE, C#
BeitragVerfasst: Mi 15.06.05 10:11 
Und was steht in der Exception?

Gruss Stübi

_________________
Neun von zehn Stimmen in meinen Kopf sagen, dass ich nicht verrückt sei. Die zehnte summt die Tetrismelodie.
JustusJonas Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 222



BeitragVerfasst: Mi 15.06.05 12:00 
Zitat:
Im Projekt Project1.exe ist eine Exception der Klasse EIdHTTPProtocolException aufgetreten. Meldung 'HTTP/1.0 401 Unauthorized'. Prozess wurde angehalten. Mit Einzelne Anweisung oder Start fortsetzen.


Greetz
JustusJonas Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 222



BeitragVerfasst: Mi 15.06.05 14:37 
Ich glaub ich hab was gefunden.

Bei der idHTTP-Komponente kann ich Password und Username eintragen.

Jetzt scheints aber Probleme mit dem Proxy hier in der Firma zu geben. Da bekomme ich immer entweder einen Connection Timout (wenn ich ProxyParams.BasicAuthentification auf False mache) und wenn ich versuche mich anzumelden am Proxy kommt "Access denied", obwohl ich mit dem User 100%-ig Rechte darauf habe.

Greetz
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 15.06.05 15:43 
user profile iconJustusJonas hat folgendes geschrieben:
Zitat:
Im Projekt Project1.exe ist eine Exception der Klasse EIdHTTPProtocolException aufgetreten. Meldung 'HTTP/1.0 401 Unauthorized'. Prozess wurde angehalten. Mit Einzelne Anweisung oder Start fortsetzen.


Die Indys haben einfach nur eine Exception geworfen, als vom Server eine 401 zurückkam. Das ist normal und kein Fehler.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
try
  IdHTTP.irgendwas
except
  E: Exception;
  ShowMessage(E.message);
end;