Главная страница
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
3-82064
VOVA
2003-09-05 20:25
2003.09.25
Номер последней ячейки в базе


14-82485
Igorek
2003-09-06 18:55
2003.09.25
Опрос: какой секс предпочитают программисты?


3-82036
Bams
2003-09-02 16:53
2003.09.25
Multiple records found, but only one was expected. Как бороть?


3-82138
Kosha
2003-09-03 14:28
2003.09.25
Работа с дробными числами в Access


14-82492
jack128
2003-09-05 17:28
2003.09.25
Именинники 5 сентября