Scott

here is a little speciallity ;-) ....

http://212.242.251.247:1550/pextcgidmo/showcros.pgm

Sourcecode to showcros:

/copy qsrc,pxapihdr General H-Spec's

* powerEXT API Connectors
/copy qsrc,pxapicgicn Basic HTTP connecter & Basic Services

* Support for HTTPAPI by Scott Klement
/copy qrpglesrc,httpapi_h

* Declare Program Variables
d rc s 10I 0
d url s 100A varying
d filename s 45A varying
d file s 45a

/free
clearSrvPgm();

url = 'http://www.gringoes.com/images/Copacabana502.jpg';
filename = http_tempfile() + '.jpg';

rc = http_url_get( url : filename );
if (rc <> 1);
dsply 'HTTPAPI: An error occured in the call';
return;
endif;

echoBinToClient('image/jpeg':filename);

qcmd('del (''' + filename + ''')');

*inlr = *on;
return;

/henrik




Scott Klement <web400@xxxxxxxxxxxxxxxx>
Sent by: web400-bounces@xxxxxxxxxxxx
22-04-2010 22:53
Please respond to
Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>


To
Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
cc

Subject
Re: [WEB400] img src






So then you don't just want to make it avialable to the server, you also
want it to be available to your customers, right?

Sounds simple enough to me. Make them sign in with a userid/password
and only allow those signed-in users to view the image.

On 4/22/2010 2:57 PM, Lim Hock-Chai wrote:
This img file is a dynamic graph that is stored on an internal server.
This dynamic graph is generated and updated every 2 hours by a internal
engineering application. We want to be able to present the graph to the
customer thru our customer facing web app.

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.