Hallo,
ich versuche mich verzweifelt per Application an einer WebSeite anzumelde.
Der entsprechende HTMLCodeausschnitt schaut so aus:
Delphi-Quellcode:
0 <form method="post" name="loginform" action='j_security_check;jsessionid=9768950922DF4C16E8B7F8C33F5D991A' >
1 <table border="0" cellspacing="5">
2 <tr>
3 <th align="right">
4 User name:
5 </th>
6 <td align="left">
7 <input type="text" name="j_username" />
8 </td>
9 </tr>
10 <tr>
11 <th align="right">
12 Password:
13 </th>
14 <td align="left">
15 <input type="password" name="j_password" />
16 </td>
17 </tr>
18 <tr>
19 <td align="center" colspan="2">
20 <input type="submit" value="Log In" />
21 <input type="reset" />
22 </td>
23 </tr>
24 </table>
25 </form>
Der Delphicode schaut so aus:
Delphi-Quellcode:
paramlist := TStringList.Create;
paramlist.Add('j_username=<username>');
paramlist.Add('j_password=<password>');
paramlist.Add('action=j_security_check');
try
stringlist.Text:=alarm.Post('https://192.168.1.20:8443/nms/alarms.jsp?',paramlist);
Ich habe keine Ahnung was daran falsch sein soll.
In der Stringlist ist immer wieder der
HTML Code der webseite zu finden, d.h. Anmeldung fehlgeschlagen
und versuche es nocheinmal.
Nur, ich verstehe nicht warum?
Hat da jemand eine Idee?
Grüße
Klaus