Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.09.25;
Скачать: CL | DM;

Вниз

Работа с прокси   Найти похожие ветки 

 
ronin   (2003-07-29 08:53) [0]

Мне нужно HTTP Get через прокси чтобы юзер выбирал тип прокси или ещё лучьше чтобы это делалось автоматом хотя это вряд ли возможно.
Подскажите пожалуйста как это заюзать, а то из хелпа ничего толкового не выудил с англитским у меня по правде напряги


 
Карелин Артем ©   (2003-07-29 10:00) [1]

1. Учи английский. Без него труба в ашем деле.
2. Шестерки под рукой нет, какие компоненты используешь неизвестно. Попытайся понять хотя бы эту выдержку:
Place a TButton, 2 TEdits, a TMemo, and a TNMHTTP on the form.

Insert the following code into Button1"s OnClick event:

procedure TForm1.Button1Click(Sender: TObject);
begin
if (Edit1.Text <> "") and (Edit2.Text <> "") then
begin

NMHTTP1. Proxy := Edit1.Text;
( Edit2.Text)
1. Учи английский. Без него труба в ашем деле.
2. Шестерки под рукой нет, какие компоненты используешь неизвестно. Попытайся понять хотя бы эту выдержку:
Place a TButton, 2 TEdits, a TMemo, and a TNMHTTP on the form.

Insert the following code into Button1"s OnClick event:

procedure TForm1.Button1Click(Sender: TObject);
begin
if (Edit1.Text <> "") and (Edit2.Text <> "") then
begin

NMHTTP1. Proxy := Edit1.Text;
NMHTTP1. ProxyPort := StrToInt(Edit2.Text);
end;
NMHTTP1.Get(" http://www.netmastersllc.com");
Memo1.Text := NMHTTP1.Body;
end;


Example Description:
When this application is run, enter the dotted IP address or host name of the proxy server you use in Edit1. Type the port number you connect to the proxy server on in Edit2. If you are unsure of either of these things, ask your network administrator. Once these values have been set, click Button1. The host name/ip address in Edit1 is assigned to the Proxy property, and the number in Edit2 is assigned to the ProxyPort property after it has been converted into an integer. Then, the Get method retrieves the document located at http://www.netmastersllc.com using the proxy server specified, and displayes it in Memo1.


 
Dimka Maslov ©   (2003-07-29 12:40) [2]

http://endimus.ru/oldcontent/files/index_en.php?page=dimhttp.htm
В этом компоненте есть возможность ручного задания прокси или автоматического определения его настроек и IE



Страницы: 1 вся ветка

Текущий архив: 2003.09.25;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.028 c
1-82186
Vik_mix
2003-09-12 23:28
2003.09.25
поиск Edit-а


14-82439
Некрофил-затейник__
2003-09-08 09:01
2003.09.25
Человеки помогите найти!


3-82124
kostik78ua
2003-09-04 11:50
2003.09.25
аналог gen_id в Interbase для MSSQL


3-82129
Рома
2003-09-04 12:47
2003.09.25
У кого есть какие наработки, решения по организауии групп в


14-82469
Всеволод Соловьёв
2003-09-06 12:22
2003.09.25
Воздушно-пузырьковые стиралки