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

Re: Host not found



Sorry for the confusion, yes it was a dummy mask number - there is a real value on the client's iSeries.
 
I did get in touch with a network guy and he said that the routers will not allow a PING command to work.  And he suspected the routers might not allow a file to come in from an external site to their iSeries server.  What we need to do for the project is HTTP post from the iSeries to an internal (in the firewall) Web server.  So what we tried to do was this:
 - changed the code in the example, commenting out the external server and adding code for the internal server as follows:
0009.00  *                                                                 
0010.00 c*                  eval      rc = http_url_get(                   
0011.00 c*                            'HTTP://www.scottklement.com/rpg/'+  
0012.00 c*                            'socktut/tutorial.pdf':              
0013.00 c*                            '/tmp/sock_tutorial.pdf')            
0014.00 c                   eval      rc = http_url_get(                   
0015.00 c                             'HTTP://10.250.52.45/'+    &! nbsp;&nb sp;        
0016.00 c                             'document.txt':                      
0017.00 c                             '/tmp/httpapi_test.txt')           
 -  recompiled the program and reran it
 
Now they are getting a "DSPLY  connect(): The value specified for the argument is n" in the job log.  They are gone for the day so I can't get them to debug and see what the entire error is but I'm suspecting the http_url_get parms are not correct.  I must need another pair of eyes because it seems to me that it is passing the two required parms - the URL and the file name to put the reply into.
 
What am I missing?

Thanks!
 
-------------- Original message --------------

> Sender: Scott Klement
>
>
> > Is 12.345.67.89 something you made up or something that is there? (I
> > would hope the AS/400 would reject based on the .345 but I'm not going
> > to test it on my production system!)
>
> If you look at the number closely, you'll see that it's simply counting
> from 1-9. I'm sure that was a "dummy" number that he typed for the sake
> of example.
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubsribe from the list send mail
> to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
> -----------------------------------------------------------------------