I use HTTPAPI to retrieve other csv files. Now I've got one that should be simple, but I'm getting the following:
This is the URL (with my user and password removed):
I can ping the target domain successfully from the IBM i command line. I can use the whole link and successfully download the csv file from a browser. But when I try to do it from within my RPG using HTTPAPI, it gives me the above error.
In this particular case, the difference from other files that I retrieve similarly from other sites, is that the user name and password is embedded in the URL. And the password they gave me has an @ sign in it. Is that a problem and could it be generating the error I'm getting?
Code:
HTTPAPI Ver 1.32 released 2016-02-10 NTLM Ver 1.4.0 released 2014-12-22 OS/400 Ver V7R2M0 New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0 http_url_get(): entered http_persist_open(): entered http_long_ParseURL(): entered DNS resolver retrans: 1 DNS resolver retry : 2 DNS resolver options: x'00000136' DNS default domain: drj.la DNS server found: 10.100.10.21 DNS server found: 10.100.10.22 DNS server found: 4.2.2.2 SetError() #2: Host name look up failed.
Code:
url = 'http://tables.zip2tax.com?usr=username&pwd=password&id=1';
In this particular case, the difference from other files that I retrieve similarly from other sites, is that the user name and password is embedded in the URL. And the password they gave me has an @ sign in it. Is that a problem and could it be generating the error I'm getting?
Comment