Einzelnen Beitrag anzeigen

gandime
(Gast)

n/a Beiträge
 
#1

nach HTTP/1.0 400 Bad Request idhttp weiterverwenden

  Alt 19. Aug 2008, 14:29
Hi,
manchmal bekomme ich wenn ich eine Inetseite mit Idhttp aufrufe folgenden Fehlermeldeung:
Zitat:
Erste Gelegenheit für Exception bei $75533843. Exception-Klasse EIdHTTPProtocolException mit Meldung 'HTTP/1.0 400 Bad Request'. Prozess PrjPPProxy.exe (1692)
mein Code:
Delphi-Quellcode:
  try
  s:=idhttp.get('http://www.wieistmeineip.de/');
except
  idhttp.Free;
  idhttp:=tidhttp.Create(nil);
  IdHTTP.HandleRedirects:=True;
  IdHTTP.RedirectMaximum:=15;
  IdHTTP.Request.UserAgent:='Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)';
  idhttp.IOHandler:=IdSSLIOHandlerSocketOpenSSL1;
  IdSSLIOHandlerSocketOpenSSL1.SSLOptions.CertFile:=ExtractFilePath(ParamStr(0))+'ssl.cer';
  IdSSLIOHandlerSocketOpenSSL1.SSLOptions.VerifyDepth:=2;
  IdSSLIOHandlerSocketOpenSSL1.SSLOptions.Method:=sslvSSLv3;
  IdSSLIOHandlerSocketOpenSSL1.SSLOptions.Mode:=sslmClient;
  IdHTTP.ReadTimeout:=5000;
  exit;
end;
tjoa aber trotz des neues Inizialisieren von Idhttp bekomme ich ab dann immer diese Fehlermeldung egal welche Seite ich aufrufe!
Wie kann ich das ändern?

mfg
gandime
  Mit Zitat antworten Zitat