Any other thoughts?



-----Original Message-----
From: Justin Taylor
Sent: Sunday, June 17, 2018 10:03 AM
To: WEB400 (web400@xxxxxxxxxxxx) <web400@xxxxxxxxxxxx>
Subject: CGIDEV2 upload problem

I have a web service implemented using CGIDEV2. It uses basic authentication in Apache via a validation list. The web service receives two file uploads, as parameters, per call. It passes the IFS paths to those files to a *SRVPGM and returns the response to the caller.

This works fine most of the time. About once a day, CGIDEV2 crashes processing the file uploads. This permanently corrupts the IBMi job, and all subsequent calls to that job fail (even different programs/ activation groups). If the client retries, the call works (provided it gets a different IBMi job).

I'm working on a solution. Unlike text parameters, file uploads in CGI aren't trivial for DIY. I'm leaning towards replacing the RPG service with something else (e.g. Node, PHP, Python), although I'm reluctant to add a new language to our environment. I don't see a clear choice for which language to try. Also, the basic authentication is a big question mark.

We can probably change the URL the client calls, but that's probably about it. The budget is my time.

I welcome and appreciate any input you have to offer.

TIA

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.