× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



There are EXAMPLExx members in the QRPGLESRC file that will probably help you out. I'm not on the latest, so my examples won't match what you see, but you should see something similar to what you want.

It's recommended to use the latest beta version http://www.scottklement.com/httpapi/beta/ especially if you're just getting started.

There is a mailing list specifically for the software http://www.scottklement.com/mailman/listinfo/ftpapi

If you are having specific problems getting something to work, please enable debugging and send your code and log file to that list for support. (I realize you're not to that point yet.)
--
Sean Porterfield



-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jeff Young
Sent: Friday, June 22, 2012 10:43
To: Midrange Systems Technical Discussion; RPG programming on the IBM i / System i
Subject: HTTPAPI Help

All,
I am just dipping my big toe into the world of sending a document using HTTP and have downloaded Scotts HTTPAPI programs.
Unfortunatly, there does not seem to be any documentation on how to use them.

Can someone point me to any info on how to use the various procedures?
I have a project where I need to do the following:
1) Append the destination string "/import" to the URL:
https://api.traceregister.com/import OR
https://api.traceregister.com/training/import

2) Create an HTTP Request using the modified URL, and set a header attribute named "Authorization" equal to the Import Key:

request.header["Authorization"] = ImportKey

3) Send the HTTP Request as a POST with the modified XML document contents as the Request Payload.

The XML document is in a file on the IFS.

Thanks,
--
Jeff Young
Sr. Programmer Analyst


This email is confidential, intended only for the named recipient(s) above and may contain information that is privileged. If you have received this message in error or are not the named recipient(s), please notify the sender immediately and delete this email message from your computer as any and all unauthorized distribution or use of this message is strictly prohibited. Thank you.

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.