Larry,

I am currently using something similar to what you need.
Scott's HTTPAPI is needed.

Here is the net.data code:

%Function(Dtw_DirectCall) GetQuote
(Out Char(256) Quote, Char(128) Author){
%Exec{ /QSYS.LIB/CGI.LIB/GETQUOTE.PGM %}
%}
<td colspan="3">
@GetQuote(Quote,Author)
<B><FONT color=#1040ac size=5>
&nbsp; &nbsp; &nbsp; Quote of the Day<br>
</font></b>
<i>"$(Quote)"</i><br>
--$(Author)
</td>

If you want the RPG program, you will first need to put Scott's HTTPAPI on
your box, then contact me or just look at Scott's examples (they should
clear up a lot questions).

HTH,

Craig



-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Scott Klement
Sent: Thursday, June 26, 2008 1:39 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] UPS shipping rates with Net.Data

Hello,

The parser is not really that important, since I have a number of
ways to do that. What I am looking for is the mechanism to
send/receive XML from my HTML/Net.data code. This CURL stuff does
that, but seems to run on every OS known to man except OS/400.

The HTTPAPI tool does exactly that -- it sends/receives data using the
HTTP protocol. (It *also* has an XML parser, but that's not it's
primary purpose, and you don't have to use it if you don't want to.)

So HTTPAPI is a tool for sending bytes (it doesn't matter what format
they're in) over a network using the HTTP protocol. It's aimed at RPG
(not Net.Data) but I expect you can call RPG from Net.Data, correct?

If you don't like that -- Brad Stone also has a similar tool called
GETURI. Also designed for RPG/CL.

If you really have your heart set on cURL, it's available for i5/OS (I
have it installed!), but you have to run it in PASE. That would be a
non-issue from PHP (which also runs in PASE), though I don't know enough
about Net.Data to know if it can invoke PASE software. But if you
really want to use cURL and Net.Data can't invoke QShell or PASE, then
you could always write a CL wrapper around it, and invoke that.

Does that help?

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.