Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi idhttp IOHandler value is not valid? (https://www.delphipraxis.net/99038-idhttp-iohandler-value-not-valid.html)

gandime 5. Sep 2007 23:03


idhttp IOHandler value is not valid?
 
Hi,
ich versuche gerade ein Yahoo-Login zu machen aber es funzt nicht so richtig :-( warum?

login Quellcode:
Zitat:

<form method="post" action="https://login.yahoo.com/config/login?" autocomplete="off" name="login_form">
<input type="hidden" name=".tries" value="1">
<input type="hidden" name=".src" value="">
<input type="hidden" name=".md5" value="">
<input type="hidden" name=".hash" value="">
<input type="hidden" name=".js" value="">
<input type="hidden" name=".last" value="">
<input type="hidden" name="promo" value="">
<input type="hidden" name=".intl" value="us">

<input type="hidden" name=".bypass" value="">
<input type="hidden" name=".partner" value="">
<input type="hidden" name=".u" value="2q6u14l3du9ab">
<input type="hidden" name=".v" value="0">
<input type="hidden" name=".challenge" value="HlioywfuuVyMYQ8_79MM7H75H90j">
<input type="hidden" name=".yplus" value="">
<input type="hidden" name=".emailCode" value="">
<input type="hidden" name="pkg" value="">
<input type="hidden" name="stepid" value="">

<input type="hidden" name=".ev" value="">
<input type="hidden" name="hasMsgr" value="0">
<input type="hidden" name=".chkP" value="Y">
<input type="hidden" name=".done" value="http://my.yahoo.com">
<input type="hidden" name=".pd" value="_ver%3d0%26c=">
<table id="yreglgtb" summary="form: login information">
<tr>
<th><label for="username">Yahoo! ID:</label></th>

<td><input name="login" id="username" value="" size="17" class="yreg_ipt" type="text"></td>
<script language="JavaScript" type="text/javascript">if(document.getElementById) document.getElementById('username').focus();</script>
</tr>
<tr>
<th><label for="passwd">Password:</label></th>
<td><input name="passwd" id="passwd" value="" size="17" class="yreg_ipt" type="password"></td>
</tr>

</table>

<p id="sigcopys"><input type="checkbox" id="persistent" name=".persistent" value="y"
mein Code:
Delphi-Quellcode:
var
  ts_temp:tstringlist;
  s_temp:string;
  tsl_temp:tstringlist;
begin
  ts_temp:=tstringlist.Create;
  ts_temp.Values['.tries']:='1';
  ts_temp.Values['.src']:='';
  ts_temp.Values['.md5']:='';
  ts_temp.Values['.hash']:='';
  ts_temp.Values['.js']:='';
  ts_temp.Values['.last']:='';
  ts_temp.Values['promo']:='';
  ts_temp.Values['.intl']:='us';
  ts_temp.Values['.bypass']:='';
  ts_temp.Values['.partner']:='';
  ts_temp.Values['.u']:='2q6u14l3du9ab';
  ts_temp.Values['.v']:='0';
  ts_temp.Values['.challenge']:='HlioywfuuVyMYQ8_79MM7H75H90j';
  ts_temp.Values['.yplus']:='';
  ts_temp.Values['.emailCode']:='';
  ts_temp.Values['pkg']:='';
  ts_temp.Values['stepid']:='';
  ts_temp.Values['.ev']:='';
  ts_temp.Values['hasMsgr']:='0';
  ts_temp.Values['.chkP']:='Y';
  ts_temp.Values['.done']:='http://my.yahoo.com';
  ts_temp.Values['.pd']:='_ver%3d0%26c=';
  ts_temp.Values['username']:='user';
  ts_temp.Values['passwd']:='pw';
  ts_temp.Values['persistent']:='y';

  s_temp:=idhttp1.Post('https://login.yahoo.com/config/login?',ts_temp);

ich bekomme folgende Fehlermeldung:
Zitat:

Erste Gelegenheit für Exception bei $7C812A5B. Exception-Klasse EIdIOHandlerPropInvalid mit Meldung 'IOHandler value is not valid'. Prozess Project1.exe (3208)
warum?

mfg
gandime

Niels14 6. Sep 2007 03:38

Re: idhttp IOHandler value is not valid?
 
Versuche es mal mit:

Code:
...
tstemp.add('.tries=1');
tstemp.add('.src=');
tstemp.add('.md5=');
tstemp.add('.hash=');
...
LG Niels

gandime 6. Sep 2007 14:37

Re: idhttp IOHandler value is not valid?
 
da is ja das selbe würde also nichts bringen!

außerdem läd es ja nichtmal die seite ohne iwelchen zusatzinfos es kommt immer diese Fehlermeldung
muss ich vlt noch ein paar änderungen machen, damit der idhttp-client nicht geblockt wird?
bjes jetzt habe ich folgendes:
Delphi-Quellcode:
  IdHTTP1.HandleRedirects:=True;
  IdHTTP1.RedirectMaximum:=15;
  IdHTTP1.Request.UserAgent:='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)';


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:40 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz