Search found 11 matches

by RodneyGaylor
Sat Jun 14, 2025 6:27 am
Forum: HTTPAPI
Topic: Paying It Forward: My "Write HTTP Server Standard Input to IFS" program
Replies: 1
Views: 635

Re: Paying It Forward: My "Write HTTP Server Standard Input to IFS" program

Quick note... this version does not trap an error that occurs when no payload is provided. It's late and I forgot to test that. :lol:
by RodneyGaylor
Sat Jun 14, 2025 6:18 am
Forum: HTTPAPI
Topic: Paying It Forward: My "Write HTTP Server Standard Input to IFS" program
Replies: 1
Views: 635

Paying It Forward: My "Write HTTP Server Standard Input to IFS" program

I've been working almost exclusively in APIs for a little over a year now, and this forum has been an indispensable source of helpful information (and tools!). I just finished writing a program that is triggered by an endpoint on our HTTP server, reads the standard input payload, writes that payload ...
by RodneyGaylor
Wed Dec 18, 2024 2:50 pm
Forum: Other ScottKlement.com Tools
Topic: Missing base64_h
Replies: 1
Views: 20378

Re: Missing base64_h

Please disregard... I found it!

https://www.scottklement.com/base64/
by RodneyGaylor
Wed Dec 18, 2024 2:52 am
Forum: Other ScottKlement.com Tools
Topic: Missing base64_h
Replies: 1
Views: 20378

Missing base64_h

I am trying to use the following directives in an RPGLE program.

Code: Select all

/copy ifsio_h

Code: Select all

/copy base64_h
I have the latest LIBHTTP and YAJL libraries in my library list, but the compiler is not finding base64_h.

What a I missing?
by RodneyGaylor
Fri Jul 19, 2024 4:16 pm
Forum: YAJL-ILE
Topic: How do I tell HTTP Server where "parameters" begin in URI?
Replies: 10
Views: 77926

Re: How do I tell HTTP Server where "parameters" begin in URI?

Thanks, Scott! I'm not a network guy, and neither is the other guy (IT Manager) in our small 2-man shop. So I had not even thought about the firewall. I believe this will get us where we need to go. Thanks again!
by RodneyGaylor
Thu Jul 18, 2024 8:44 am
Forum: YAJL-ILE
Topic: How do I tell HTTP Server where "parameters" begin in URI?
Replies: 10
Views: 77926

Re: How do I tell HTTP Server where "parameters" begin in URI?

Hi Scott,

I finally got my program working, but now I am having another challenge.

I know this is not a YAJL or HTTPAPI issue, but I have created an HTTP Server, following your guidance in the DIY section of the "Providing Web Services on IBM i" presentation, to run this program as an API. This is ...
by RodneyGaylor
Thu Jul 11, 2024 2:03 pm
Forum: YAJL-ILE
Topic: How do I tell HTTP Server where "parameters" begin in URI?
Replies: 10
Views: 77926

Re: How do I tell HTTP Server where "parameters" begin in URI?

I have changed my program to receive the filter parameters in a JSON payload rather than passing the filters in the URI.

Now I am having trouble with the STDOUT process. I am not receiving everything that was loaded by the program.

Here is my program:


**free
/copy qfunctdefn,@copyright ...
by RodneyGaylor
Wed Jul 10, 2024 7:41 pm
Forum: YAJL-ILE
Topic: How do I tell HTTP Server where "parameters" begin in URI?
Replies: 10
Views: 77926

Re: How do I tell HTTP Server where "parameters" begin in URI?

One little slash! No, that was not intentional. Thanks for your help!
by RodneyGaylor
Wed Jul 10, 2024 3:02 pm
Forum: YAJL-ILE
Topic: How do I tell HTTP Server where "parameters" begin in URI?
Replies: 10
Views: 77926

Re: How do I tell HTTP Server where "parameters" begin in URI?

EDIT: Would I be better off to forget about passing the parameters in the URI and instead put them in a JSON request file and process it as standard input? If so, which presentations can I peruse to get me down that path?
___
I am trying to pass four parameters to the program by following the ...
by RodneyGaylor
Wed Jul 10, 2024 3:32 am
Forum: YAJL-ILE
Topic: How do I tell HTTP Server where "parameters" begin in URI?
Replies: 10
Views: 77926

How do I tell HTTP Server where "parameters" begin in URI?

I am making my first attempt at creating a web service based on the DIY section of the article "Providing RPG Web Services on IBM i".

So far I have:

1) Created a new HTTP Server called RESTFUL
2) Created a new IBM i library called RESTFUL
3) Created a SQLRPGLE program in the RESTFUL library called ...