|
Check HTTP Proxy Good Version
|
Email
|
| Submitted on: |
7/17/2003 7:55:29 PM |
| By: |
Sergiu Sincan
|
| Level: |
Intermediate |
| User Rating: |
By 3 Users |
| Compatibility: |
Delphi 7 |
| Views: |
17285 |
|
(About the author) |
|
|
|
Uses Indy to check a HTTP Proxy.
|
| |
Terms of Agreement:
By using this article, you agree to the following terms...
- You may use
this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
- You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
- You may link to this article from another website, but ONLY if it is not wrapped in a frame.
- You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
|
//drop a TIdHttp component on Form1, this is used for initialization procedure
uses IdHTTP, IdException;
function isvalidproxy(proxy:string):boolean;
var http:TIdHttp;
begin
http:=form1.IdHTTP1;
isvalidproxy:=true;
try
HTTP.Request.ProxyConnection:=proxy;
http.Get('http://www.google.com/index.html');
HTTP.Disconnect;
except
on E: EIdException do begin
isvalidproxy:=false;
end;
On E:exception do begin
showmessage('External error:' + #13#10 + E.Message);
isvalidproxy:=false;
end;
end;
end;
|
|
Other 3 submission(s) by this author
|
|
Report Bad Submission
|
Your Vote
|
| |
Other User Comments
|
7/18/2003 5:04:34 AM:
u not say, what 's component need
and else (If this comment was disrespectful, please report it.)
|
7/18/2003 8:00:52 AM:
It's made for Delphi 7 Enterprise. But I think it works on Delphi 7 Pro, Standard and even Personal or earlier versions of Delphi if you get Indy version 9 from www.indyproject.org. I wish you good luck in getting a huge proxy list from the net and writing your own application to sort the ones that work from the ones that don't. (If this comment was disrespectful, please report it.)
|
8/7/2003 1:41:26 PM: Sergey Gurevich
You called this code a Good HTTP Proxy version? ... I thought you created a own design of the HTTP sockets implementation.... You just using a built version of Indy component ...that all. Everybody can do that. (If this comment was disrespectful, please report it.)
|
12/13/2004 11:20:58 AM:
I don't understand. It doesn't work with out downloading that component ? I have Indy component IdHTTP, but it doesn't recognise the "ProxyConnection" from "HTTP.Request.ProxyConnection:=proxy;" What am I suposed to dowload ? I have Delphi 6 (& don't have money to buy 7). (If this comment was disrespectful, please report it.)
|
6/8/2005 12:35:52 PM:
you can get it form
http://www.d9s.net (If this comment was disrespectful, please report it.)
|
9/9/2007 8:27:12 AM: k4ck
gooooooood (If this comment was disrespectful, please report it.)
|
Add Your Feedback
Your feedback will be posted below and an email sent to
the author. Please remember that the author was kind enough to
share this with you, so any criticisms must be stated politely, or they
will be deleted. (For feedback not related to this particular article, please
click here instead.)
To post feedback, first please login.
|