[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTTPAPI



Hi Michael,

HTTPAPI is asking the operating system (i5/OS) to look up a host named 
"secure.authorize.net".   i5/OS is telling HTTPAPI that the host cannot 
be found.

Under the covers (and this isn't part of HTTPAPI -- it's a part of 
i5/OS) the system is sending requests to IP addresses 207.65.0.25, 
207.65.4.2, and 207.65.46.2.  It's sending them DNS requests saying 
"hey, what's the IP address of secure.authorize.net" and it's either not 
getting any response, or they are responding with "I don't know".

IT's likely that the problem is in the DNS servers on those machines -- 
maybe they're not the correct DNS servers for you to use?  Or maybe 
they're not DNS servers at all, and were entered by mistake?  Or maybe 
they are only allowed to look up local names, and there's a different 
server you're supposed to use for remote names?

You'll need to discuss this with whomever administers your network. 
Find out the correct DNS server addresses, and change them on your i 
with the CHGTCPDMN command (or CFGTCP option 12)

Good luck



Michael Cook wrote:
> This the results of the debug.
> Any thoughts
> 
> HTTPAPI Ver 1.23 released 2008-04-24
> OS/400 Ver V5R3M0
> 
> New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
> https_init(): entered
> ------------------------------------------------------------------------
> -------------
> Dump of local-side certificate information:
> ------------------------------------------------------------------------
> -------------
> -----BEGIN CERTIFICATE-----
> MIICOzCCAaSgAwIBAgIHSfb65gi9eDANBgkqhkiG9w0BAQQFADBTMQswCQYDVQQG
> EwJVUzESMBAGA1UECBMJVGVubmVzc2VlMRowGAYDVQQKExFUV0hCRUEgUHJvY2Vz
> c2luZzEUMBIGA1UEAxQLQ3JlZGl0X0NhcmQwHhcNMDkwNDI3MTI0NzM0WhcNMTAw
> NDI4MTI0NzM0WjBuMQswCQYDVQQGEwJUTjESMBAGA1UECBMJVGVubmVzc2VlMQ8w
> DQYDVQQKEwZUV0hCRUExOjA4BgNVBAMTMWh0dHBzOi8vc2VjdXJlLmF1dGhvcml6
> ZS5uZXQvZ2F0ZXdheS90cmFuc2FjdC5kbGwwgZ8wDQYJKoZIhvcNAQEBBQADgY0A
> MIGJAoGBALmdbHpbaZOMNfoiAF2po3rgeSUoHok/q/L0SSBHS1GhdhXPxiHHmhkB
> AN7WFPgB5WeJTAoZPslQxsITSeczywOrTqL3lI31hHMkoUi4cZOSWJGeS7jFUYzp
> zKK7dABk16ZN3wf2TsSxyc7E+/Sl+4+5clwNKZlag2BAB0WwRLnBAgMBAAEwDQYJ
> KoZIhvcNAQEEBQADgYEA4AvDRG2cNtcPCxoO5pMR8xdYSwRX89sThmJydT2OovPb
> FXebmvZ0PAg5Il+0oy5Kstope+f2daTxx0XjUfOQuIImXwPDm8PBRve9rjnWJpEP
> Um6BQGk1tUXvjerL8/mt5ou8QLslhmgo8E49eO7QXb8mN2Io4DB02u0bOepPl9w=
> -----END CERTIFICATE-----
> Serial Number: 49:F6:FA:E6:08:BD:78
> Common Name: https://secure.authorize.net/gateway/transact.dll
> Country: TN
> State/Province: Tennessee
> Org Unit: TWHBEA
> Issuer CN: Credit_Card
> Issuer Country: US
> Issuer State/Province: Tennessee
> Issuer Org: TWHBEA Processing
> Version: 03
> not before: 20090427124734
> not after: 20100428124734
> pub key alg: 1.2.840.113549.1.1.4
> 
> http_persist_open(): entered
> http_long_ParseURL(): entered
> DNS resolver retrans: 2
> DNS resolver retry  : 2
> DNS resolver options: x'00000136'
> DNS default domain: TWHBEA.COM
> DNS server found: 207.65.0.25
> DNS server found: 207.65.4.2
> DNS server found: 207.65.46.2
> SetError() #2: Host name look up failed.
> 
> Thank You
> 
> Michael Cook
> Director of Technology
> TWHBEA
> (931) 359-0586
> 
> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Michael Ryan
> Sent: Tuesday, April 28, 2009 3:10 PM
> To: HTTPAPI and FTPAPI Projects
> Subject: Re: HTTPAPI
> 
> Create a debug file. Add this line before your post (actually, anywhere
> before you start doing stuff):
> 
> Http_Debug(*ON);
> 
> then check for a file in the IFS named httpapi_debug.txt. That will
> contain your debug output. See if that helps. You might want to post the
> contents here so we can check it out.
> 
> - Michael
> 
> On Tue, Apr 28, 2009 at 3:56 PM, Michael Cook <mcook@xxxxxxxxxx> wrote:
> 
>>   I am at a point where I don't know where to go next.  I have
>>   everything installed HTTPAPI & expat-2.0.0. SSL certificate store,
> SSL
>>   certificate and certificated assigned to the application.  Using the
>>   examples to build my application to communicate with our Credit Card
>>   company authorize.net.
>>
>>   I issue the following command
>>
>>   rc =
>>
>>
> http_url_post_raw('https://secure.authorize.net/gateway/transact.dll':
>>   %addr(data): %len(%trimr(data)): 30: %paddr('INCOMING'));
>>
>>
>>   if retlen > 1;
>>
>>
>>   Return length is always 0???
>>
>>   Can anyone help??
>>
>> ----------------------------------------------------------------------
>> - This is the FTPAPI mailing list.  To unsubscribe, please go to:
>> http://www.scottklement.com/mailman/listinfo/ftpapi
>> ----------------------------------------------------------------------
>> -
>>
>>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
> 

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------