|
|
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) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.perl/13852635cf1e0.html, оценка из 5, голосов 10
|