![]() |
IdHttp und proxy
Ich hab mich gefragt, wie man die idhttp kompo über nen proxy jagen kann.
Es geht irgendwie mit den proxy params ... aber ich hab keine ahnung was ich da eingeben muss. Kann mir evtl jemand eine beispieleinstellung posten? Bzw auch was ich alles einstellen muss? Danke - MfG - Ghost007 |
Re: IdHttp und proxy
Genau so heißen die. ProxyParams, musst mal im OI schauen.
![]() |
Re: IdHttp und proxy
Zitat:
|
Re: IdHttp und proxy
Zitat:
|
Re: IdHttp und proxy
Zitat:
@Christian: Die Daten musst du ja wissen, zu welchem Proxyserver Du verbinden musst? :gruebel: |
Re: IdHttp und proxy
Zitat:
|
Re: IdHttp und proxy
|
Re: IdHttp und proxy
Zitat:
Delphi-Quellcode:
Memo1.text:=idHttp1.get('http://www.google.de');
|
Re: IdHttp und proxy
![]() ![]() so wirds gemacht
Delphi-Quellcode:
For Indy 9.0 and Indy 10
HTTP1.ProxyParams.ProxyServer := [the DNS name of the proxy server or its IP address] HTTP1.ProxyParams.ProxyPort := [port the HTTP the HTTP proxy listens on] HTTP1.ProxyParams.ProxyUsername := [username if the proxy requires authentication] HTTP1.ProxyParams.ProxyPassword := [password if the proxy requires authentication] |
Re: IdHttp und proxy
Zitat:
|
Re: IdHttp und proxy
Geht nix = :glaskugel:
|
Re: IdHttp und proxy
Delphi-Quellcode:
Das funktioniert... Zeigt dir auch die IPs an
var
szTmp1,szTmp2 : String; begin IdHTTP1.Request.ProxyServer := '213.4.106.85'; IdHTTP1.Request.ProxyPort := 8080; szTmp1 := IdHTTP1.Get('http://2host.de/'); szTmp1 := Copy(szTmp1, Pos('<BIG>[B]',szTmp1)+8,40); szTmp1 := Copy(szTmp1, 1, Pos('[/B]',szTmp1)-1); IdHTTP1.Request.ProxyServer := ''; IdHTTP1.Request.ProxyPort := 0; szTmp2 := IdHTTP1.Get('http://2host.de/'); szTmp2 := Copy(szTmp2, Pos('<BIG>[B]',szTmp2)+8,40); szTmp2 := Copy(szTmp2, 1, Pos('[/B]',szTmp2)-1); memo1.lines.text := 'Deine IP ohne Proxy: ' + szTmp1 + #13#10+ 'Deine IP mit Proxy: ' + szTmp2; end; [EDIT] Hab grade festgestellt, dass ich hier nur Indy 8.xx installiert hab... Sorry [/EDIT] |
Re: IdHttp und proxy
... vielleicht sollte der OP auch erstmal ohne Proxy testen um den Fehler einzugrenzen.
|
Re: IdHttp und proxy
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:39 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz