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

RE: HTTPAPI - SSL (fwd)



Sender: "Rick Hill" <rhill@xxxxxxxxxxxxxxxxxxxx>

Our AS400 is directly connected to internet through a pix firewall.   I have attached two code snippets that I think are doing all the work.   I keep having a timeout issue waiting on returned data.  Yesterday the guy at the other end reset something on his end and the transmission worked fine but then on the very next try timeout occurred again.   So I started the netstat command just to see what was active sure enough I seen a connection with their IP address listed.  This was after the program had ended with *INLR on.  I just thought it was strange each time he resets whatever on his side I can make a successful transaction.


C* before you can use the https (http over SSL) stuff, you         
C*  must call https_init() to initialize the library.              
C* (see also the comments in the RegisterMe subroutine)            
                                                                   
c                   eval      rc = https_init(APP_ID : *Off : *On :
c                                             *Off)                
                                                                   
c                   if        rc < 0                               
c                   eval      msg = http_error(rc)                 
c                   if        rc = HTTP_NOTREG                     
c                   eval      rc=https_dcm_reg(APP_ID: *ON)        
c                   if        rc < 0                               
c                   eval      msg = http_error                     
c                   dsply                   msg                    
c                   endif                                          
c                   return                                         
c                   else                                           
c                   dsply                   msg                    
c                   return                                         
c                   endif                                          
c                   eval      rc=http_url_post_raw(                 
C                             'https://test.scdmvonline.com/+       
C                               dmvcounty/cidrs1.asmx' :            
C                                  %addr(data): %len(%trimr(data)): 
c                                  1: %paddr('INCOMING'):           
C                                  20 :'Mozilla/5.0 (X11; U; OS400)'
C                                    : 'text/xml' :                 
C                                   'https://test.scdmvonline.com/+ 
C                                     dmvCounty/CIDRs1/Execute')    


-----Original Message-----
From: owner-ftpapi@xxxxxxxxxxxxx [mailto:owner-ftpapi@xxxxxxxxxxxxx]On
Behalf Of Ian Patterson
Sent: Tuesday, August 10, 2004 4:10 AM
To: ftpapi@xxxxxxxxxxxxx
Subject: RE: HTTPAPI - SSL (fwd)


Sender: "Ian Patterson" <ian@xxxxxxxxxxxxxxxxxxxx>

How is the initial connection made ?

Is it over an existing link - i.e. Internet connection, or via dial-up
direct to the remote site using a PPP Originators profile ?

If you are using a TCPPTP profile:
You have to physically start and stop the profile. i.e. after a session is
completed, just closing your program / and/or HTTPAPI has no effect on the
physical link. You have to STPTCPPTP to end the connection.
Make sure its just outbound, and not listening for incoming calls.


Regards

Ian Patterson

ian@xxxxxxxxxxxxxxxxx <mailto:ian@xxxxxxxxxxxxxxxxx>

Grange IT Limited
tel 01947 880458
www.grangesystems.com



-----Original Message-----
From: owner-ftpapi@xxxxxxxxxxxxx [mailto:owner-ftpapi@xxxxxxxxxxxxx]On
Behalf Of Scott Klement
Sent: 09 August 2004 22:11
To: ftpapi@xxxxxxxxxxxxx
Subject: HTTPAPI - SSL (fwd)


Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>


---------- Forwarded message ----------
Date: Mon, 9 Aug 2004 16:46:23 -0400
From: Rick Hill <rhill@xxxxxxxxxxxxxxxxxxxx>
To: owner-ftpapi@xxxxxxxxxxxxx
Subject: HTTPAPI - SSL

I have a program using HTTPAPI and SSL.  Why is that after I have done a
post and the program has ended is it still leaving an open connection?
If I do a netstat command I see that the connection is still established.
I think this is what causing the program to fail the next time called.
The only way I can get to connect after initial success is have the remote
site reset on their side.  I can then send another transaction but then
back to square one again with open connection.


Thanks so much
- -----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
- -----------------------------------------------------------------------


- -----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
- -----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------