Главная страница


ru.perl

 
 - RU.PERL ----------------------------------------------------------------------
 From : Alexandre Gorobets                   2:5020/400     10 Feb 2003  19:30:01
 To : Dmitri A. Martynoff
 Subject : Re: HTTP через proxy
 -------------------------------------------------------------------------------- 
 
 > use HTTP::Request::Common;
 > use LWP;
 >
 > my $ua=LWP::UserAgent->new;
 > $ua->agent('Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)');
 > my $request = GET($url);
 > my $response = $ua->request($request);
 
 perldoc LWP::UserAgent
 
    $ua->proxy(...)
        Set/retrieve proxy URL for a scheme:
 
         $ua->proxy(['http', 'ftp'], 'http://proxy.sn.no:8001/');
         $ua->proxy('gopher', 'http://proxy.sn.no:8001/');
 
        The first form specifies that the URL is to be used for proxying of
        access methods listed in the list in the first method argument, i.e.
        'http' and 'ftp'.
 --
 - ---
 С уважением, Александр
 --- ifmail v.2.15dev5
  * Origin: Peterlink ISP News System (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 HTTP через proxy   Dmitri A. Martynoff   10 Feb 2003 16:52:05 
 Re: HTTP через proxy   Alexandre Gorobets   10 Feb 2003 19:30:01 
 Re: HTTP через proxy   Sergey Leschenko   10 Feb 2003 19:30:06 
Архивное /ru.perl/13852635cf1e0.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional