×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.





have you looked at the debug logs for CGIDEV2? Also, can you correlate the
crash to file size perhaps? If I remember correctly when you get to a
certain file size you had to use a different call within CGIDEV2.

***
Joe W Holt
Sr Programmer/Engineer
Jack Onofrio Dog Shows, LLC
405.427.8181



From: "Justin Taylor" <JUSTIN@xxxxxxxxxxxxx>
To: "WEB400 (web400@xxxxxxxxxxxx)" <web400@xxxxxxxxxxxx>
Date: 06/17/2018 10:02 AM
Subject: [WEB400] CGIDEV2 upload problem
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxx>



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
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2026 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.