Autor Beitrag
Julian W.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 47

Win 2000
D7 Enterprise
BeitragVerfasst: So 28.05.06 12:49 
Hallo Leute,
ich wurde vor kurzem von einem Freund gefragt, ob ich nicht ein Prog coden könnte, was ihm eine HTML Form ausfüllen kann. Es war ne von ihm selbstgecodete seite und es hat alles prima gefunzt.. Jetzt habe ich mich gefragt, wie es bei einer Seite mit hoher Sicherheitsstufe und hidden Feldern usw. aussieht. Ich habe mir Firstload ausgesucht, da ich schon öfters gehört habe, das die eine total hohe Sicherheitsstufe haben. Egal. Ich habe es jetzt schon Stundenlang probiert und immer wieder im Board gesucht. Also mein Code sieht wie folgt aus:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
procedure TForm1.Button1Click(Sender: TObject);
var
data: TIdMultiPartFormDataStream;
begin
data := TIdMultiPartFormDataStream.Create;
try
data.AddFormField('namefirst',Edit1.Text);
data.AddFormField('namelast',Edit2.Text);
data.AddFormField('street',Edit3.Text);
data.AddFormField('pcode',Edit4.Text);
data.AddFormField('city',Edit5.Text);
memo1.Lines.Text := IdHTTP1.Post('http://www.firstload.de/signup.php', data);
finally
data.Free;
end;
end;

Ich habe keine Ahnung woran es liegt, aber ich bekomme immer diesen Fehler:
user defined image
Habe schon verschiedene Sachen ausprobiert, aber nie hat es geklappt. Ich habe irgendwo im Board gelesen, das man den Formnamen mitsenden müsse, aber ich habe keinen Plan, wie das geht. Hier ist mal der Quellcode des Formulars:
ausblenden volle Höhe 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:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
<tbody><tr><th><label for="gender">Anrede:</label></th>
<td><select name="gender" id="gender">
<option value="m" selected="selected">Herr</option>
<option value="f">Frau</option>
</select>
</td>
</tr>
<tr>
<th><label for="namefirst">Vorname:</label></th>
<td><input name="namefirst" id="namefirst" value="" size="30" maxlength="32" type="text"></td>
</tr>
<tr>

<th><label for="namelast">Nachname:</label></th>
<td><input name="namelast" id="namelast" value="" size="30" maxlength="32" type="text"></td>
</tr>
<tr>
<th><label for="street">Strasse u. Nr.:</label></th>
<td><input name="street" id="street" value="" size="30" maxlength="64" type="text"></td>
</tr>
<tr>
<th><label for="pcode">PLZ</label> <label for="city">Ort:</label></th>
<td>
<input name="pcode" id="pcode" value="" size="5" maxlength="12" type="text">
<input name="city" id="city" value="" size="22" maxlength="40" type="text">

</td>
</tr>
<tr>
<th></th>
<td></td>
</tr>
<tr>
<th><label for="country_id">Land:</label></th>
<td><select name="country_id" id="country_id">
<option value="-"><Land auswählen></option>
<option value="de">Deutschland</option>
<option value="at">Österreich</option>
<option value="ch">Schweiz</option>

</select>
<input name="language_id" value="de" type="hidden">
</td>
</tr>
<tr>
<th><label for="email">E-Mail:</label></th>
<td><input name="email" id="email" value="" size="30" maxlength="64" type="text"></td>
</tr>
<tr>
<th><label for="phone">Telefon:</label></th>
<td><input name="phone" id="phone" value="" size="30" maxlength="32" type="text"></td>
</tr>
<tr>
<td colspan="2">Bitte tragen Sie Ihre Daten sorgfältig ein. Nur mit korrekten Angaben können Sie an der Testaktion und am Gewinnspiel teilnehmen.</td>

</tr>
<tr>
<th> </th>
<td><input onclick="this.value='Daten werden gesendet'; this.disabled=true; this.form.submit();" value="Absenden" type="submit"></td>
</tr>
</tbody>


Ich würde mich über schnelle Hilfe freuen.
MfG Julian
huhn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 272
Erhaltene Danke: 1

WIN XP
D7Pers
BeitragVerfasst: So 28.05.06 13:38 
mach ma AllowCookies=true (wirste wahrscheinlichschon haben *g*)
und dann HandleRedirect=true.
sollte es noch immer net gehen überprüf den link und poste mal den kompletten html-code
mfg huhn

_________________
Quod Erat Demonstrandum-Was zu beweisen war! *THX to Chrissivo!*
Julian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 47

Win 2000
D7 Enterprise
BeitragVerfasst: So 28.05.06 14:08 
*löl*
herzlichen Dank erstmal!! Also allow cookies hatte ich schon probiert, auch mit nem CookieManager usw.
Das mit dem Redirekt hatte ich nicht. Jetzt kommt keine Fehlermeldung mehr *Freu* aber die Memo bleibt leer^^ lol
Also es steht nicht mehr memo1 drinnen, sondern sie ist einfach leer^^
Ich werd mal nen bissl rumprobieren. Danke nochmal
MfG Julian
Julian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 47

Win 2000
D7 Enterprise
BeitragVerfasst: So 28.05.06 17:12 
Ich schon wieder...
Also es geht immer noch nicht. Ich habe jetzt mal data.ClassNameIs('signup-form'); probiert. Ich gehe mal davon aus, das man damit den formnamen ändern kann... Hier ist mal der komplette Quellcode der Seite:
ausblenden volle Höhe 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:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="creator" content="Richard Harb" />
<meta name="MSSmartTagsPreventParsing" content="TRUE" />
<meta name="robots" content="index, follow" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="stylesheet" href="/style/www_style.css" type="text/css" media="screen, projection" title="Firstload Design" />
<script type="text/javascript" src="/script/scripts.js"></script>
<title>Firstload.de</title>
</head>
<body>

<div id="fullhead">
<div id="main-head">
<div id="inner-head">
<div id="fake_ds_button">
<a href="datenschutz.php" onclick="javascript:window.open('datenschutz.php', 'Neues', 'width=450,height=500,left=0,top=0,scrollbar=true'); return false;"><span>Datenschutz</span></a>
</div>
<div id="fake_home_button">
<a href="index.php"><span>Home</span></a>
</div>
<form method="post" action="/member/login.php">
<fieldset>
<label for="ih-login">Benutzer:</label>
<input type="text" name="login" id="ih-login" size="8" maxlength="32" />
<label for="ih-passwd">Kennwort:</label>

<input type="password" name="pass" id="ih-passwd" size="8" maxlength="32" />
<input type="submit" value="Login" id="ih-submit" />

<a href="/remail.php">Passwort vergessen</a>
</fieldset>
</form>
<h1>Firstload.de</h1>
<h2>mit Sicherheit verbunden</h2>
</div>
<div id="nav">
<ul>
<li><a href="/">Home</a></li>
<li class="active"><a href="https://www.firstload.de/signup.php?log=7585">Anmelden</a></li>

<li><a href="/wie.php?log=7585">Wie funktioniert's?</a></li>
<li><a href="/software.php?log=7585">Software</a></li>
<li><a href="/newsgroups.php?log=7585">Newsgroups</a></li>
<li><a href="/support.php?log=7585">Support</a></li>
<li><a> </a></li>
<li class="flag"><a href="http://www.firstload.de/signup.php?set_lang=es&log=7585"><img src="/images/icons/miniflag_es.gif" alt="es" /></a></li>
<li class="flag"><a href="http://www.firstload.de/signup.php?set_lang=fr&log=7585"><img src="/images/icons/miniflag_fr.gif" alt="fr" /></a></li>
</ul>
</div>
</div>
</div>
<div id="content-wrap">
<div id="inner-content">

<div id="content">
<div id="content-col1">
<h1>Jetzt kostenlos anmelden!</h1>
<p>Jetzt anmelden und den bisher schnellsten Download-Genuss erleben. Mehr als 300 Terabyte an Videos, Games, Software, MP3s und Erotikinhalten warten darauf heruntergeladen zu werden!</p>
<div class="paket-container_signup">
<h1>Alle Firstload Pakete auf einen Blick:</h1>
<h2>Mit dem „Firstload Test-Paket" kostenlos durchstarten!</h2>
<div class="paket-container_signup_body">
<ul style="list-style-image: url(/images/www/li.gif);">
<li><strong>Kostenlos</strong> 14 Tage lang bis zu 1 Gigabyte an Daten downloaden</li>

<li>100% anonymer Zugang zu allen Inhalten</li>
<li>Maximaler Speed: Downloaden was Ihre Internetleitung hergibt!</li>
<li>Kostenlose Software zum einfachen und schnellen Downloaden der gesuchten Daten</li>
</ul>
<h4>Können wir Sie im Testzeitraum begeistern und wollen Sie mehr als 1 Gigabyte downloaden, so können Sie Ihren Account jederzeit zu einem der folgenden Pakete upgraden:</h4>
</div>
<table summary="">
<tr>
<th class="lh2">Firstload 10</th>
<th class="lh2">Firstload 25</th>

<th class="lh2">Firstload 50</th>
</tr>
<tr>
<td><img src="/images/www/p_10.jpg" alt="Firstload 10 Paket" /></td>
<td><img src="/images/www/p_25.jpg" alt="Firstload 25 Paket" /></td>
<td><img src="/images/www/p_50.jpg" alt="Firstload 50 Paket" /></td>
</tr>
<tr>
<th colspan="3" class="lh2">immer dabei: anonymer Highspeedzugang und kostenlose Software!</th>
</tr>
<tr>
<td class="lh2">10 GB pro Monat</td>
<td class="lh2">25 GB pro Monat</td>

<td class="lh2">50 GB pro Monat</td>
</tr>
<tr>
<td class="lh3">7,90 € pro Monat</td>
<td class="lh3">9,90 € pro Monat</td>
<td class="lh3">19,90 € pro Monat</td>
</tr>

<tr>
<td class="lh2">Laufzeit: 12 Monate</td>
<td class="lh2">Laufzeit: 9 Monate</td>
<td class="lh2">Laufzeit: 3 Monate</td>
</tr>
</table>
</div>  <div class="paket-footer"></div><h1>Ja, ich will 14 Tage kostenlos testen</h1>
<p>Bitte füllen Sie das Formular vollständig aus, Ihre Daten werden selbstverständlich vertraulich behandelt und nicht an Dritte weitergegeben.</p>

<form method="post" action="/signup.php" class="signup-form">
<table summary="">
<tr><th><label for="gender">Anrede:</label></th>
<td><select name="gender" id="gender">
<option value="m" selected="selected">Herr</option>
<option value="f">Frau</option>
</select>
</td>
</tr>
<tr>
<th><label for="namefirst">Vorname:</label></th>
<td><input type="text" name="namefirst" id="namefirst" value="" size="30" maxlength="32" /></td>
</tr>

<tr>
<th><label for="namelast">Nachname:</label></th>
<td><input type="text" name="namelast" id="namelast" value="" size="30" maxlength="32" /></td>
</tr>
<tr>
<th><label for="street">Strasse u. Nr.:</label></th>
<td><input type="text" name="street" id="street" value="" size="30" maxlength="64" /></td>
</tr>
<tr>
<th><label for="pcode">PLZ</label> <label for="city">Ort:</label></th>
<td>
<input type="text" name="pcode" id="pcode" value="" size="5" maxlength="12" />

<input type="text" name="city" id="city" value="" size="22" maxlength="40" />
</td>
</tr>
<tr>
<th></th>
<td></td>
</tr>
<tr>
<th><label for="country_id">Land:</label></th>
<td><select name="country_id" id="country_id">
<option value="-"><Land auswählen></option>
<option value="de">Deutschland</option>
<option value="at">Österreich</option>

<option value="ch">Schweiz</option>
</select>
<input type="hidden" name="language_id" value="de" />
</td>
</tr>
<tr>
<th><label for="email">E-Mail:</label></th>
<td><input type="text" name="email" id="email" value="" size="30" maxlength="64" /></td>
</tr>
<tr>
<th><label for="phone">Telefon:</label></th>
<td><input type="text" name="phone" id="phone" value="" size="30" maxlength="32" /></td>
</tr>
<tr>

<td colspan="2">Bitte tragen Sie Ihre Daten sorgfältig ein. Nur mit korrekten Angaben können Sie an der Testaktion und am Gewinnspiel teilnehmen.</td>
</tr>
<tr>
<th> </th>
<td><input type="submit" onclick="this.value='Daten werden gesendet'; this.disabled=true; this.form.submit();" value="Absenden" /></td>
</tr>
</table>
</form>
</div>
<div id="content-col2">
<div class="box_promo_right">
<h2>Sonderaktion</h2>
<h1 class="kasten_kostenlos"><a href="https://www.firstload.de/signup.php?log=7585" title="Jetzt kostenlos anmelden">         </a></h1>

</div>
<div class="box_promo_right">
<h2>Ihre Firstload Welt</h2>
<table summary="">
<tr>
<td><img src="/images/www/icon_text.gif" width="11" height="12" alt="" /></td>
<td class="boldtext">294 Mill.</td>
<td>Texte</td>
</tr>
<tr>
<td><img src="/images/www/icon_video.gif" width="15" height="10" alt="" /></td>
<td class="boldtext">554.381</td>
<td>Videos</td>

</tr>
<tr>
<td><img src="/images/www/icon_sound.gif" width="14" height="15" alt="" /></td>
<td class="boldtext">385.318</td>
<td>MP3s</td>
</tr>
<tr>
<td><img src="/images/www/icon_software.gif" width="13" height="13" alt="" /></td>
<td class="boldtext">201.602</td>
<td>Programme</td>
</tr>
<tr>
<td><img src="/images/www/icon_games.gif" width="19" height="13" alt="" /></td>

<td class="boldtext">128.327</td>
<td>Games</td>
</tr>
<tr>
<td><img src="/images/www/icon_images.gif" width="13" height="13" alt="" /></td>
<td class="boldtext">5.753.427</td>
<td>Bilder</td>
</tr>
</table>
</div>
<div class="box_promo_right">
<h2>Top-Newsgroups</h2>

<ol>
<li><a href="/newsgroups.php?log=7585">alt.binaries.dvd</a></li>
<li><a href="/newsgroups.php?log=7585">alt.binaries.erotica</a></li>
<li><a href="/newsgroups.php?log=7585">alt.binaries.cd.image.xbox</a></li>
<li><a href="/newsgroups.php?log=7585">alt.binaries.cd.image.ps2</a></li>
<li><a href="/newsgroups.php?log=7585">alt.binaries.sounds.mp3</a></li>
</ol>
</div>
<div class="box_promo_right" style="background-image:url(/images/fl_gewinnspiel.jpg); background-repeat:no-repeat; height: 203px; padding-top:2px; text-align:center; cursor: pointer;"  onclick="window.location.href='https://www.firstload.de/gewinnspiel/?log=7585'">
<h2>Anmelden und gewinnen!</h2>


<strong>Philips PF 7520, 107cm HDTV Plasma</strong>
</div>
<div class="kasten_verisign"></div>
</div>
<div id="content-infopoint">
<p>Noch Fragen? Vielleicht finden Sie <a href="/faq.php?log=7585">hier</a> die richtigen Antworten.
Außerdem steht Ihnen unser Service-Team zur Verfügung.
</p>
<p>Senden Sie eine E-Mail mit Ihren Fragen an: <a href="/impressum.php?log=7585" class="infobold">support@firstload.de</a>
oder rufen sie uns an:<a href="/impressum.php?log=7585" class="infotel">Telefon</a>

</p>
</div><div id="footer">
<a href="/index.php?log=7585">Home</a>
 | 
<a href="/agb.php?log=7585">AGB</a>
 | 
<a href="/impressum.php?log=7585">Impressum</a>
 | 
<a href="/jobs.php?log=7585">Jobs</a>
 | 

<a href="/presse.php?log=7585">Presse</a>
 | 
<a href="/partner/" rel="external">Partnerprogramm</a>
</div>
</div>
</div>
</div>
<div id="pcopyright">
Copyright © 2005 Firstload Group - Germany, Austria, Switzerland, Spain, France, Belgium
</div>
</body></html>

Ich hoffe du/ihr könnt mir helfen! Mein Aktueller Code:
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:
procedure TForm1.Button1Click(Sender: TObject);
var
data: TIdMultiPartFormDataStream;
begin
data := TIdMultiPartFormDataStream.Create;
try
idhttp1.AllowCookies:=true;
idhttp1.HandleRedirects := true;
data := tidmultipartformdatastream.Create;
data.ClassNameIs('signup-form');
data.AddFormField('namefirst',Edit1.Text);
data.AddFormField('namelast',Edit2.Text);
data.AddFormField('street',Edit3.Text);
data.AddFormField('pcode',Edit4.Text);
data.AddFormField('city',Edit5.Text);
data.AddFormField('country_id','de');
data.AddFormField('email',Edit6.Text);
data.AddFormField('phone',Edit7.Text);
showmessage(IdHTTP1.Post('http://www.firstload.de/signup.php', data));
memo1.Lines.text := idhttp1.get('http://www.firstload.de/signup.php');
finally
data.Free;
end;
end;


MfG Julian W.
huhn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 272
Erhaltene Danke: 1

WIN XP
D7Pers
BeitragVerfasst: So 28.05.06 17:28 
Du erstellst zweimal dein stream!
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:
procedure TForm1.Button1Click(Sender: TObject);
var
data: TStringlist;
begin
data := TStringlist.Create;
try
idhttp1.AllowCookies:=true;   //das kannste direkt in bei der kompo machn
idhttp1.HandleRedirects := true;//das kannste direkt in bei der kompo machn
data.Add('gender='+xxx); //haste wohl vergessen
data.Add('namefirst='+Edit1.Text);
data.Add('namelast='+Edit2.Text);
data.Add('street='+Edit3.Text);
data.Add('pcode='+Edit4.Text);
data.Add('city='+Edit5.Text);
data.Add('country_id=de');
data.Add('email=',Edit6.Text);
data.Add('phone=',Edit7.Text);
//showmessage(IdHTTP1.Post('http://www.firstload.de/signup.php', data));
memo1.Lines.text := idhttp1.Post('http://www.firstload.de/signup.php', data);
finally
  data.Free;
end;
end;

_________________
Quod Erat Demonstrandum-Was zu beweisen war! *THX to Chrissivo!*
Julian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 47

Win 2000
D7 Enterprise
BeitragVerfasst: So 28.05.06 17:43 
Nunja, es geht immer noch nich :P DAs mit dem Gender dürfte eigentlich egal sein, da es schon vorausgewählt ist... Warum hast dus nicht mit MultiPartFormDataStream gemacht? Gibts da nen Unterschied? Sry für meine dämlichen Fragen... Funzs bei dir? Greetz Julian
huhn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 272
Erhaltene Danke: 1

WIN XP
D7Pers
BeitragVerfasst: So 28.05.06 17:59 
ändere mal deinen UserAgent (is bei Request en unterpunkt) und nimm mal
"Mozilla/4.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4"

_________________
Quod Erat Demonstrandum-Was zu beweisen war! *THX to Chrissivo!*
Julian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 47

Win 2000
D7 Enterprise
BeitragVerfasst: So 28.05.06 18:15 
*grummel*
es geht immer noch nicht... Geht es denn bei dir? Kannst mir auch per icq schreiben, das geht vllt. schneller :P Ich schick dir mal die Nummer per pn.
Greetz Julian
Julian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 47

Win 2000
D7 Enterprise
BeitragVerfasst: Do 08.06.06 16:45 
Es geht immer noch nicht... Also wenn mir noch jemand helfen kann...
Schreibt zurück^^
*push*