AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Delphi idhttp IOHandler value is not valid?
Thema durchsuchen
Ansicht
Themen-Optionen

idhttp IOHandler value is not valid?

Ein Thema von gandime · begonnen am 5. Sep 2007 · letzter Beitrag vom 6. Sep 2007
Antwort Antwort
gandime
(Gast)

n/a Beiträge
 
#1

idhttp IOHandler value is not valid?

  Alt 5. Sep 2007, 23:03
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
  Mit Zitat antworten Zitat
Benutzerbild von Niels14
Niels14

Registriert seit: 28. Dez 2005
Ort: Sydney/Australien
18 Beiträge
 
Delphi XE4 Enterprise
 
#2

Re: idhttp IOHandler value is not valid?

  Alt 6. Sep 2007, 03:38
Versuche es mal mit:

Code:
...
tstemp.add('.tries=1');
tstemp.add('.src=');
tstemp.add('.md5=');
tstemp.add('.hash=');
...
LG Niels
Niels Maschmeyer
  Mit Zitat antworten Zitat
gandime
(Gast)

n/a Beiträge
 
#3

Re: idhttp IOHandler value is not valid?

  Alt 6. Sep 2007, 14:37
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)';
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:28 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