Hoscha: Content-type: text/html wird doppelt angezeigt

Hallo,

nun kam ich mit dem Access auf eine Datenbank mittels LDAP und SSL ein wenig weiter:
Ein Auszug aus meinem Skript sieht so aus:
(...)
#Connect and bind to the directory as application account
print "Attempting to bind to the directory as application account";
my $ldap  =  new Mozilla::LDAP::Conn($host,$secure_port,$app_dn,$app_pw,$cert) ||die("Unable to authenticate to the Directory Server!\n");
print "Connected\n";
(...)

Hat jemand von euch ne Anhnung, aus welchem Grund immer nach der Ausgabe "Attempting to bind to the directory as application account"
der Ausdruck "Content-type: text/html" mit auf den Bildschirm ausgegeben wird, obwohl ich es nur einmal (am Anfang des Skriptes) geschrieben habe?

Vielleicht liegt dann darin auch der Fehler, warum ich mit nicht connecten kann.

Vielen Dank im Voraus,
Holger

  1. Hallo,

    #Connect and bind to the directory as application account
    print "Attempting to bind to the directory as application account";
    my $ldap  =  new Mozilla::LDAP::Conn($host,$secure_port,$app_dn,$app_pw,$cert) ||die("Unable to authenticate to the Directory Server!\n");

    Hat jemand von euch ne Anhnung, aus welchem Grund immer nach der Ausgabe
    "Attempting to bind to the directory as application account"
    der Ausdruck "Content-type: text/html" mit auf den Bildschirm ausgegeben wird,
    obwohl ich es nur einmal (am Anfang des Skriptes) geschrieben habe?
    Vielleicht liegt dann darin auch der Fehler, warum ich mit nicht connecten
    kann.

    Du benutzt bestimmt CGI::Carp qw/fatalsToBrowser/, oder? In dem Fall schickt
    CGI::Carp einen Header um die Fehlermeldung anzuzeigen. Die wird naemlich von dem
    Modul umgewandelt in HTML und dann ausgegeben.

    Gruesse,
     CK

    1. ;-)

      Gruß,
      Holger