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

Re: [Ftpapi] TCP/IP with HTTPAPI



Thank you Mr Klement for your rapid answer.

 

The device is an Ingenico ICT250, a card payment device.

With the supplier documentation, the communication with this device is TCP/IP (simple character string formatted with field separator character x1C (asci) which is x22 EBCDIC).

As said, using basic APIs of socket programming, we succedded in communicating with it, sending the appropriate request and receiving the corresponding answer.

 

Then, what we tried, is to look at a more ‘simple’ way and thought we can use some of HTTPAPI functions for this.  But as your answer, maybe the device is not accepting HTTP protocol (?), we would like to know if there is a way with HTTPAPI to do a basic ‘raw’ TCP/IP request ?

 

Thank you

Marcel

 

 

Ce courriel peut contenir de l’information privilégiée, confidentielle ou protégée. Ce courriel est destiné exclusivement au(x) destinataire(s) mentionné(s). Toute utilisation, transmission ou copie non autorisée de ce courriel est interdite. Si vous avez reçu ce courriel par erreur, veuillez en aviser l’expéditeur et détruire toute copie en votre possession. This communication may contain privileged or confidential information. Unauthorized use, transmission or copying of this communication is strictly prohibited. If you are not the intended recipient or received this communication by error, please delete and notify the sender accordingly.

De : ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] De la part de Scott Klement
Envoyé : 19 novembre 2017 03:18
À : ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Objet : Re: [Ftpapi] TCP/IP with HTTPAPI

 

Hello Marcel,

I'm afraid I don't know what you are asking me.  HTTPAPI implements the HTTP protocol, which is a protocol for TCP/IP networks.  That is the only type of network it works over. 

You haven't explained what you're trying to do. You said you want to connect to a device, but you haven't told us what the device is, how you need to connect to it, or why http_url_post is not working for you.

-SK

 

On 11/17/17 11:38 AM, Parent, Marcel wrote:

Hi M. Klement,

 

We were using HTTPAPI successfully since almost a year in our applications (RPGLE) for many purposes.

Everything is fine, thanks for that.

 

Now what I’m trying is to use it for a TCP/IP communication with a device connected to our iSeries (power 8). 

This device has a an IP address (static).  We are able to communicate with program using basic TCP/IP APIs as you describe in your TCP tutorial.

But I would like to know how, if possible, simply use the HTTPAPI functions, as http_url_post ?

 

Thanks

 

Marcel Parent

Analyste-Programmeur/Analyst-Programmer

(514) 832-4010  x5057

mparent@xxxxxxxxxxxxx

 

 

-- 
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi