Re: Has the Treasury Direct interface changed?

2018-01-28 Thread farleykj
So, after trying different methods of communicating with the treasurydirect site, I finally bit the bullet and updated my Perl modules (via a cpan "upgrade" command) and the problem has been fixed. Don't know which module was mucked up or how it got that way, but things are working fine, now. I

Re: Has the Treasury Direct interface changed?

2017-12-29 Thread Fred Bone
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: > > > use LWP::UserAgent ; > use LWP::Simple ; > > my

Re: Has the Treasury Direct interface changed?

2017-12-29 Thread Ken Farley
The only CPAN-related stuff I've done was updating Finance::Quote during the Yahoo-caused quote debacle. Other than that, I tend to leave things as is, since OS X is allegedly pretty snotty about having things mucked about with. Near as I can figure the problem is solely with the

Re: Has the Treasury Direct interface changed?

2017-12-28 Thread farleykj
John, I get the results you get from "curl". A whole lot of code. So this narrows my troubles down to the use of Perl for requests? I'm currently using version 5.18. - Ken Farley -- Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html

Re: Has the Treasury Direct interface changed?

2017-12-28 Thread farleykj
I'm not using a proxy. I tried using identification strings for a few other browers, like Chrome, Internet Explorer, Safari, etc. and to no avail. - Ken Farley -- Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html ___

Re: Has the Treasury Direct interface changed?

2017-12-28 Thread John Ralls
> On Dec 28, 2017, at 2:45 PM, farleykj wrote: > > Well, that really does me in, I guess. Odd that I can use their on-site tools > to get values of things, but can't via Perl. > Try the curl line I posted earlier, then look into your browser settings, for example are you

Re: Has the Treasury Direct interface changed?

2017-12-28 Thread farleykj
Well, that really does me in, I guess. Odd that I can use their on-site tools to get values of things, but can't via Perl. - Ken Farley -- Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html ___ gnucash-user mailing list

Re: Has the Treasury Direct interface changed?

2017-12-28 Thread John Ralls
> On Dec 28, 2017, at 1:56 PM, farleykj wrote: > > 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: > > > use LWP::UserAgent ; > use

Re: Has the Treasury Direct interface changed?

2017-12-28 Thread Colin Law
On 28 December 2017 at 18:26, farleykj wrote: > I did try this. The only effect from changing it is to get a different > number > at the end of the failure message, i.e. it goes from > You did try what? Since you have not quoted the message you are replying to we do not know

Re: Has the Treasury Direct interface changed?

2017-12-28 Thread John Ralls
> On Dec 28, 2017, at 10:26 AM, farleykj wrote: > > I did try this. The only effect from changing it is to get a different number > at the end of the failure message, i.e. it goes from > > "Can't connect to www.treasurydirect.gov:80 (Connection refused)" > > to > >

Re: Has the Treasury Direct interface changed?

2017-12-28 Thread farleykj
I did try this. The only effect from changing it is to get a different number at the end of the failure message, i.e. it goes from "Can't connect to www.treasurydirect.gov:80 (Connection refused)" to "Can't connect to www.treasurydirect.gov:443 (Connection refused)" This is rather mysterious

Re: Has the Treasury Direct interface changed?

2017-12-28 Thread Colin Law
On 27 December 2017 at 21:55, farleykj wrote: > The URL is listed with https. But, for the record, I tried http and https > in > futile attempts to connect. Neither makes any difference. The error message > you refer to is the "contents" of the results I get from a query to

Re: Has the Treasury Direct interface changed?

2017-12-23 Thread farleykj
The API is documented, but again, attempts to communicate with it yield the same message: Can't connect to www.treasurydirect.gov:80 (Connection refused) It just seems that the site doesn't want to accept any communications. I'd be interested if someone else was able to get anything out of the

Re: Has the Treasury Direct interface changed?

2017-12-23 Thread David Reiser
> On Dec 23, 2017, at 8:20 PM, farleykj wrote: > > Hi Frank. > > I substituted the definition of the URL with the following > > my $urlSite = "https://www.treasurydirect.gov/; ; > > But I still get the same message about the connection being refused. Going > by the normal

Re: Has the Treasury Direct interface changed?

2017-12-23 Thread farleykj
Hi Frank. I substituted the definition of the URL with the following my $urlSite = "https://www.treasurydirect.gov/; ; But I still get the same message about the connection being refused. Going by the normal browser activity, I can get to the ..BC/SBCPrice page and get prices, etc. It just

Re: Has the Treasury Direct interface changed?

2017-12-23 Thread Frank H. Ellenberger
Hi Ken, Am 23.12.2017 um 04:22 schrieb farleykj: > Further investigation seems to show that the site does not allow any > connections, at least not via Perl. I attempted a simple "probe" of the > price calculation site, via the following: > > my $urlSite =

Re: Has the Treasury Direct interface changed?

2017-12-17 Thread farleykj
I'm using the bond quote grabbing code I wrote in 2012 which has been serving me faithfully since 2016-04-04. I am using https in the url, here's the full contents I get from the post request: Can't connect to www.treasurydirect.gov:443 (Connection refused) LWP::Protocol::https::Socket: connect:

Re: Has the Treasury Direct interface changed?

2017-12-17 Thread John Ralls
> On Dec 17, 2017, at 3:17 PM, farleykj wrote: > > Well, it appears that the only data being returned by quote requests is: > > "Can't connect to www.treasurydirect.gov:80 (Connection refused)" > > Don't have any idea why - my Perl experience is rather limited. Definitely

Re: Has the Treasury Direct interface changed?

2017-12-17 Thread farleykj
Well, it appears that the only data being returned by quote requests is: "Can't connect to www.treasurydirect.gov:80 (Connection refused)" Don't have any idea why - my Perl experience is rather limited. Definitely throws a wrench into the works for me, though. - Ken Farley -- Sent from:

Has the Treasury Direct interface changed?

2017-12-14 Thread farleykj
I've been able to obtain quotes from the Treasury Direct (treasurydirect.gov) for a while, until 2017-12-12. Does anyone know if the interface of this site has changed lately? I know I'll have to investigate to update my Perl code to get these, but just thought I'd check if anyone has clues that