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

RE: Receiving file via HTTP



A few years ago, while playing with CGIDEV2, I created a "web page" that was a post with a "large FORM field" for data. I used HTTPAPI to post the document to this "web page". It worked for the test using small files (that fit into variables). I was sending small csv files. I looked in our old intranet pages and I couldn't find my example, but I know I hacked it together using CGIDEV2 on the server side.

If your partner can create a HTTPAPI like connection, that solves two issues for you. One, you will know when the document is received (a problem with monitoring IFS directories). Two, it is very easy to create a "web page" that accepts a file. You could use an actual web page if that works or you could just use the POST url to have CGIDEV2 process the page directly.

Since 2009, it looks like CGIDEV2 now has some extended support for this.  http://www.easy400.net/cgidev/html/exhibiv3.htm
More information on another technique: http://www.easy400.net/fupload/html/page3.htm

CGIDEV2 works pretty well and has decent directions on getting it running quickly. If you have not worked with APACHE directives, it can be frustrating if you want to change where things are located, but overall, not too hard to setup or use.


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Brian
Sent: Wednesday, August 28, 2013 9:43 AM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Receiving file via HTTP

Hello all,

This is not a direct HTTPAPI question, but I am hoping the list may have 
some experience or suggestions on this.

I have a partner that would like to push a JSON formatted file to us 
that we will then parse.  I'd like this connection to be made to our 
iSeries and the file dropped off to the IFS where we will pick up and 
parse the file.

I am thinking of using YAJL or powerEXT for the parsing of the JSON file.

What I really need help on is what/how to set up on the iSeries to 
accept the connection for the JSON document to be dropped off to me.

Simple to start would be better as we may have a dedicated connection to 
the partner and not need much/any authentication on the HTTP connection.

If anyone has info on the best/easiest way to set up something like 
this, it would be very much appreciated.

Thanks all!
-----------------------------------------------------------------------
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
-----------------------------------------------------------------------