Re: [mh] internet_usgs.pl

Rick Steeves <[email protected]>
Newsgroups gmane.comp.misc.misterhouse.user
Message-ID <[email protected]>
It appears the problem is the website now uses a redirect, so all 
requests have to be https. get_url uses LWP, and LWP (the version 
installed) doesn't appear to do https.

Current LWP https support is 6.06 (for LWP::Protocol::https) to work 
with LWP::UserAgent . My older version of Perl (5.8.8) doesn't appear to 
successfully build LWP::Protocol::https according to Active State. the 
first one that does is Perl 5.14

Replacing my implementation of Perl with Activestate Perl 5.16 means 
that MH doesn't support that version of Perl. The most current version 
supported is 5.12 (really?):
             my $build = &Win32::BuildNumber;
             if ($build < 600) {
                 push @INC, './../lib/site_win50';
             }
             elsif ($build < 800) {
                 push @INC, './../lib/site_win56';
             }
             elsif ($build < 900) {
                 push @INC, './../lib/site_win58';
             }
             elsif ($build < 1300 and $build > 1199) {
                 push @INC, './../lib/site_win512';
             }
             else {
                 push @INC, './../lib/site_win58';
             }
         }

Fine. Editing the mh file for support of 5.16, and updating Perl for 
5.16 also means updating the ../lib/site_* structure to include 
site_win516, and copying over all the files.

That new install of Perl then means a bunch of perl modules are missing, 
and RRD breaks. The most current RRD install I can find is for Perl 5.10.

Sigh.

Rick

On 1/28/2019 6:09 PM, Rick Steeves wrote:
> 
> Hi!
> 
> I contributed internet_usgs.pl a ... long time ago. My version of the 
> script just stopped working. (and note my version of MH is WAY back 
> level).  Effectively, the script builds the necessary URL, pulls down 
> the text results from a USGS search, saves the results in a file, and 
> regex's the results.
> 
> 
> Government shutdown notwithstanding, the URL still works if I enter the 
> same URL manually. The script now fails to download the file, which 
> means the URL isn't working somehow. I noticed the URL entered manually 
> (in a web browser) redirects from http to https before returning the 
> results. I wondered if this was the problem, so changed the submitted 
> URL from http to http in the script. No dice.
> 
> Is there a difference in MH in get_url between http:// and https:// ?
> 
> Thx.
> 




________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.