On 28 December 2017 at 14:56, farleykj said: > Sorry, I thought I'd responded to the message about telling the agent what > browser it is identifying itself as. I'm using Perl, and the code I'm > using to see what's up is as follows: > > <BEGIN CODE> > use LWP::UserAgent ; > use LWP::Simple ; > > my $urlSite = "https://www.treasurydirect.gov/BC/SBCPrice" ; > my $idBrowser = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:57.0) > Gecko/20100101 Firefox/57.0" ; > > my $userAgent = LWP::UserAgent->new ; > $userAgent->agent ( $idBrowser ) ; > > my $resData = $userAgent->get ( $urlSite ) ; > print "--- [ CONTENT ] --- \n" ; > print $resData->content . "\n" ; > print "--- [ CONTENT ] --- \n" ; > <END CODE> > > The output I get from this is as follows:
The output I get from running the above code does not include any error message and appears to be the same as I see if I access the given URL with a browser and "view source", though I have not attempted to do a detailed comparison. This is with ActivePerl 5.8 on WinXP. _______________________________________________ gnucash-user mailing list gnucash-user@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-user ----- Please remember to CC this list on all your replies. You can do this by using Reply-To-List or Reply-All.