Главная страница
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-82304
victor_ch
2003-09-14 08:52
2003.09.25
Расширенный компонент ComboBox


3-82102
pkert
2003-09-04 18:41
2003.09.25
View в Interbase6.0


1-82278
Dober_m@N
2003-09-15 05:27
2003.09.25
ini ограничение на размер


1-82332
hepry
2003-09-13 13:43
2003.09.25
Checkbox без реакции на нажатие <пробел>


6-82358
Davinchi
2003-07-27 22:07
2003.09.25
Одновременная работа TWebBrowser and Word2000