Re: upgrading www::mechanize
Randy, thanks again for the advice. I really appreciate it. Regards, Irma - Original Message - From: Randy Kobes <[EMAIL PROTECTED]> Date: Monday, August 8, 2005 11:13 pm Subject: Re: upgrading www::mechanize > On Mon, 8 Aug 2005, Irmawaty Nugroh Nugroho wrote: > > >> On Mon, 8 Aug 2005, Irmawaty Nugroh Nugroho wrote: > >> > >>> Randy, > >>> > >>> I tried to use your repository, but it outputs error like this: > >>> C:\>ppm install http://theoryx5.uwinnipeg.ca/ppms/www- > mechanize.ppd>>> Error: No valid repositories: > >>> Error: 401 Authentication required > >>> Error: 401 Authentication required > >>> > >>> I have set the proxy along with my userID and password. Please > >>> help... > >>> > >> Have you checked the ActivePerl docs on ppm that discuss > >> proxy settings? Or the archives of this mailing list for > >> similar problems? Does anything there help? > >> > >> I assume this isn't a problem with just our repository, > >> and that, for example, you'd have similar problems > >> connecting to another? > >> > > Randy, > > > > thanks for your help. > > > I have looked into ActiveState docs on proxy and in > > mailing list but still to no avail. So I ended using > > different network that has no proxy server, deleted all > > the proxy setting, and installed the modules. By the way, > > are you planning to have Win32::IE::Mechanize soon in your > > repository? Thanks once again. > > I assume the proxy problem appears for all repositories? > > Another option is to grab the ppd file directly from >http://theoryx5.uwinnipeg.ca/ppms/ > as well as the corresponding archive from >http://theoryx5.uwinnipeg.ca/ppms/x86/ > (with names like, respectively, WhatEver.ppd and > WhatEver.tar.gz), edit the ppd file to reflect the locally > saved location of the .tar.gz file, and then install > locally: >C:\> ppm WhatEver.ppd > > As for Win32-IE-Mechanize, not all the tests passed > (which explains why it's not in ActiveState's repository); > however, I put up a ppm package of it in our repository. > > -- > best regards, > randy > ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: unsetting the proxy server
David, thanks. it works like a charm... I unset all the proxy setting: http_proxy, http_proxy_user and http_proxy_pass. Best Regards, Irma - Original Message - From: David J Effa <[EMAIL PROTECTED]> Date: Monday, August 8, 2005 1:04 pm Subject: Re: unsetting the proxy server > Just set "Set http_proxy=" with no value. > > > > > > > Irmawaty Nugroh Nugroho <[EMAIL PROTECTED]> > Sent by: [EMAIL PROTECTED] > 08/08/2005 11:57 AM > > >To: perl-win32-users@listserv.ActiveState.com >cc: >Subject:unsetting the proxy server > > > Just out of curiousity... > > Is there anyway that I can unset the proxy server. When I set it > at first, > I use > c:\> set http_proxy=http://proxy:port > c:\> set http_proxy_user=domainName\loginID > c:\> set http_proxy_pass=xxx > > Then, I read more information on how to do it using environment > variables. > > When I am using my machine on different environment that does not > use > proxy, I have an error that looks something like this: "Bad > hostname > 'http://proxy:port'" > I tried to delete the environment variables, but it still outputs > the > error. > > Does anyone have any ideas on how to solve this problem? > > Thanks in advanced. > > Irma > > ___ > Perl-Win32-Users mailing list > Perl-Win32-Users@listserv.ActiveState.com > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > > > ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: upgrading www::mechanize
Randy, thanks for your help. I have looked into ActiveState docs on proxy and in mailing list but still to no avail. So I ended using different network that has no proxy server, deleted all the proxy setting, and installed the modules. By the way, are you planning to have Win32::IE::Mechanize soon in your repository? Thanks once again. Best Regards, Irma - Original Message - From: Randy Kobes <[EMAIL PROTECTED]> Date: Monday, August 8, 2005 4:43 pm Subject: Re: upgrading www::mechanize > On Mon, 8 Aug 2005, Irmawaty Nugroh Nugroho wrote: > > > Randy, > > > > I tried to use your repository, but it outputs error like this: > > C:\>ppm install http://theoryx5.uwinnipeg.ca/ppms/www-mechanize.ppd > > Error: No valid repositories: > > Error: 401 Authentication required > > Error: 401 Authentication required > > > > I have set the proxy along with my userID and password. Please > help... > Have you checked the ActivePerl docs on ppm that discuss > proxy settings? Or the archives of this mailing list for > similar problems? Does anything there help? > > I assume this isn't a problem with just our repository, > and that, for example, you'd have similar problems > connecting to another? > > -- > best regards, > randy > ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
unsetting the proxy server
Just out of curiousity... Is there anyway that I can unset the proxy server. When I set it at first, I use c:\> set http_proxy=http://proxy:port c:\> set http_proxy_user=domainName\loginID c:\> set http_proxy_pass=xxx Then, I read more information on how to do it using environment variables. When I am using my machine on different environment that does not use proxy, I have an error that looks something like this: "Bad hostname 'http://proxy:port'" I tried to delete the environment variables, but it still outputs the error. Does anyone have any ideas on how to solve this problem? Thanks in advanced. Irma ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: upgrading www::mechanize
Randy, I tried to use your repository, but it outputs error like this: C:\>ppm install http://theoryx5.uwinnipeg.ca/ppms/www-mechanize.ppd Error: No valid repositories: Error: 401 Authentication required Error: 401 Authentication required I have set the proxy along with my userID and password. Please help... Regards, Irma - Original Message - From: Randy Kobes <[EMAIL PROTECTED]> Date: Thursday, August 4, 2005 8:15 pm Subject: Re: upgrading www::mechanize > On Fri, 5 Aug 2005, Sisyphus wrote: > > > It's pure perl, so you could install from CPAN source ( > > http://search.cpan.org ) using nmake. > > > > You can get nmake15.exe from either : > > ftp://ftp.microsoft.com/Softlib/MSLFILES/nmake15.exe or : > > http://download.microsoft.com/download/vc15/Patch/1.52/W95/EN- > US/Nmake15.exe> > > Just run the downloaded executable to install nmake to the > > location of your choice and make sure that location is in > > your system's path. > > > > Then unpack the CPAN source tarball, cd to the folder that > > contains the unpacked files and run 'perl Makefile.PL' and > > 'nmake test'. If you're happy with the 'nmake test' > > results, run 'nmake install'. Looks like ActiveState don't > > have a ppm of the latest WWW::Mechanize because one of the > > tests failed or hanged. If the same happens for you, the > > choice is either to fix the problem, or just install it > > anyway and hope that the problem is not going to affect > > the things that you want to do. (Sometimes test failures > > arise from bugs in the test scripts, rather than bugs in > > the module being tested.) > > On my system, the tests that failed had to do with > connecting to a live server; the failures may have been > due to changes in the content from the server that > the tests expect. All of the non-live tests passed. > > Rob's advice about getting 'nmake' and subsequently > installing pure Perl modules yourself is good, so that one > doesn't run into delays like this. If desired, though, I put > up a current WWW-Mechanize package in our repository at > http://theoryx5.uwinnipeg.ca/ppms/. > > -- > best regards, > randy > ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
upgrading www::mechanize
Hi monks, My current www::mechanize is version 0.72 because I installed it using ppm. I am wanting to upgrade it so I can use some function such as "select", "URI" to do more stuff... How can I do this properly? I tried to use "upgrade" on ppm prompt, but it has taken minutes and still processing and has not shown me the available upgrades. Please kindly advise me ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
unable to download Crypt-SSLeay
I am trying to download Crypt-SSLeay to support https URLs so I won't get error like 501 Protocol Scheme 'https' is not supported. I encountered the following error : "Failed to download http://theoryx5.uwinnipeg.ca/ppms/Crypt-SSLeay.ppd : 500 Server closed connection " When I tried to do this ppm> install http://theoryx5.uwinnipeg.ca/ppms/Crypt-SSLeay.ppd My hunch this is something to do with my proxy based on my previous experience with LWP when it encountered 500 Server closed connection. If so, how can I specify my proxy host on the prompt? I also tried to go CPAN website but the page for Crypt list can't be found. Please help, thanks in advanced. ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
LWP : 500 Server closed connection without sending any data back
Hello everyone, I have installed ActiveState Perl on my computer, and it has LWP version 5.803. (I use perl -MLWP -le "print (LWP->VERSION)" Right now, I am trying to learn to use LWP. However, LWP doesn't seem to work. I tried to run a simple program with the following code: #!/usr/bin/perl -w use strict; use LWP; my $browser = LWP::UserAgent->new( ); my $response = $browser->get("http://www.oreilly.com/";); print $response->header("Server"), "\n"; When I ran it, it doesn't output anything. I tried different codes: !/usr/bin/perl -w use strict; use URI::Escape; foreach my $word (@ARGV) { next unless length $word; my $url = 'http://www.altavista.com/sites/search/web?q=%22' . uri_escape($word) . '%22&kl=XX'; my ($content, $status, $is_success) = do_GET($url); if (!$is_success) { print "Sorry, failed: $status\n"; } elsif ($content =~ m/>AltaVista found ([0-9,]+) results?/) { # like "1,952" print "$word: $1 matches\n"; } else { print "$word: Page not processable, at $url\n"; } sleep 2; } use LWP; my $browser; sub do_GET { $browser = LWP::UserAgent->new unless $browser; my $resp = $browser->get(@_); return ($resp->content, $resp->status_line, $resp->is_success, $resp) if wantarray; return unless $resp->is_success; return $resp->content; } This will output: "Sorry, failed 500: Server closed connection without sending any data back " Same output for entering this on command prompt: perl -MLWP::Simple -e "getprint 'http://cpan.org/RECENT'" Please kindly advise on how to solve this problem. Thank you in advanced. Regards, Irma Nugroho ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs