Autor Beitrag
RuSsAk
Hält's aus hier
Beiträge: 14



BeitragVerfasst: Mo 21.12.09 08:43 
hi leute
ich hab da ein problem mit idhttp ich will mich auf einer hp einloggen aber das will einfach nich funktionieren habe schon tausende codes versucht anzupassen aber ich kriegs einfach nich hin könnte mir vllt. jemand helfen und sagen wie ich diese daten übergeben kann?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
nlogin  value="398524856" 
plogin  value="wqre87r879372183721cc23c" 
loguser
logpassword



wäre euch echt dankbar
StrikeLucky
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 35



BeitragVerfasst: Mo 21.12.09 12:16 
Hallo,

IdMultiPartFormData bzw. IdMultiPartFormDataStream dürften dir vielleicht weiterhelfen.
Um welche Seite handelt es sich denn?
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Mo 21.12.09 14:02 
Wie sieht dein bisheriger Code aus? Welches Protokoll verwendet die Seite? HTTp oder HTTPS?
RuSsAk Threadstarter
Hält's aus hier
Beiträge: 14



BeitragVerfasst: Mo 21.12.09 23:48 
hi ihr beiden

es handelt sich um die seite jappy.de

ps. hab gerade geguckt hab den code iwie anders im kopf gehabt hier der richtige:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
<form method="post" action="/password" id="login" onSubmit="javascript:ssl();" accept-charset="UTF-8">
          <input type="hidden" name="login[ts]" value="1261431989" />
          <input type="hidden" name="login[key]" value="9646ae55167fe3c995ece707798fd51c" />
          <input type="hidden" name="source" value="/">
          <div id="mx2" class="mxB2">
            <div class="ffA fs12" style="padding:3px;font-size:14px">
              Bereits Mitglied?
            </div>
            <div style="padding:3px 3px 0 3px">
              Mitgliedsname:
            </div>
            <div>
              <input type="text" name="login[u]" style="width:135px">
            </div>
            <div style="padding:3px 3px 0 3px;margin-top:2px">
              Passwort:
            </div>
            <div style="width:150px;display:inline-block">
              <div style="float:left">
                <input type="password" name="login[p]" style="width:85px"><br>
              </div>
              <div style="float:left">
                <button type="submit" name="Submit" class="inCo ffA" style="font-size:12px;cursor:pointer;margin:0px;">Login</button>
              </div>
            </div>
            <div style="margin-top:0px;padding-bottom:3px;width:150px;line-height:20px">
              <a href="/password" class="ql" style="font-size:10px">Passwort vergessen?</a><br>
                          </div>      
          </div>
        </form>


naja is ja kaum ein unterschied von den vorgängigen code :D

ps. sry das ich so spät antworte hatte heute früh ein system crash

mfg,
StrikeLucky
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 35



BeitragVerfasst: Di 22.12.09 01:07 
Jo also da ist dann IdMultiPartFormData das richtige für dich.
Hab mal eben mit Live HTTP Headers geguckt, du musst dann vorher noch den login[ts], login[key] und paar andere dinge auslesen und diese mitsenden. Am besten holst du dir mal das Plugin Live HTTP Headers für den Firefox da siehste dann was alles mitgesendet werden muss.

Edit: So viele Dinge brauchste garnicht auslesen, nur Login[ts], Login[Key] und Source.