Search found 18 matches

by emaxt6
Mon Mar 17, 2025 1:58 pm
Forum: HTTPAPI
Topic: Can new version of HTTPAPI happily co-exist with an old version?
Replies: 4
Views: 37381

Re: Can new version of HTTPAPI happily co-exist with an old version?

If you want to be sure or do testing you can DSPPGM the program you want to test, this will show to which SRVPGM is bound.

If they are *LIBL bound (and not hardwired) you can test the program putting the new libraries on top on a test session...
by emaxt6
Mon Mar 17, 2025 12:14 pm
Forum: HTTPAPI
Topic: encoding gzip , deflate
Replies: 1
Views: 6978

encoding gzip , deflate

Hello, being HTTP used a lot to carry around a lot of redundant text in webservices calls, given the eventual benefits, does HTTPAPI supports on the fly de/compression of the text payload, offloading to some api, or via filter/hooks possibility? i.e. Accept-Encoding: gzip,deflate seems commonly supp...
by emaxt6
Mon Mar 17, 2025 12:04 pm
Forum: HTTPAPI
Topic: How to calculate AWS Signature V4
Replies: 4
Views: 23005

Re: How to calculate AWS Signature V4

post above seems advertisement to me above (1 post, no content) with no added forum value... regarding the thread, it is surely pretty performant to i.e. upload a file to S3 directly via RPG without resorting to other solutions. The doc is https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-heade...
by emaxt6
Mon Feb 03, 2025 1:56 pm
Forum: HTTPAPI
Topic: Authentication Routine Using JSON
Replies: 9
Views: 43986

Re: Authentication Routine Using JSON

I would check case sensitivity on the parameters first.

Is this code "AI generated"?? You seem to "unlink" string variables??
by emaxt6
Wed Jan 15, 2025 10:01 am
Forum: HTTPAPI
Topic: OAUTH2
Replies: 6
Views: 35343

Re: OAUTH2

not a 'free' programming company where I am. ... just an advice, and it is not a matter of taste or programming language philosophy. It more of efficiency and getting things done with less money. If you start interfacing with complex web services REST/JSON , do yourself a favour, switch to free for...
by emaxt6
Wed Jan 15, 2025 9:50 am
Forum: HTTPAPI
Topic: OAUTH2
Replies: 6
Views: 35343

Re: OAUTH2

Beware that you left sensible information in the log above, any one can use the service as you, especially if it is payment processor system. Please remove it, or rotate keys, you have published to the whole internet. Secondly, use VARCHAR or VARYING in interfacing with web layers, that is usually t...
by emaxt6
Thu Dec 19, 2024 2:39 pm
Forum: HTTPAPI
Topic: HTTP_URL_POST_STMF method help
Replies: 3
Views: 26478

Re: HTTP_URL_POST_STMF method help

You cannot expect to hard encode the token, those expire etc. hence I think the error you get? For those kind of APIs what I would suggest is, build a DS to contain the token, then a separate independent program to get the token. Never build JSON "by hand", use the appropriate encoders (Sc...
by emaxt6
Wed Dec 04, 2024 6:10 pm
Forum: HTTPAPI
Topic: How does HTTPAPI get the source EBCDIC CCSID?
Replies: 6
Views: 40375

Re: How does HTTPAPI get the source EBCDIC CCSID?

Want I wanted to say is to see maybe the overload as an option to avoid an explicit additional name like an hypotetical "http_req_utf" say to have http_req_jobccsid(VARCHAR ... http_req_utf(VARCHAR CCSID(*UTF8) And a "http_req" prototype defined as overload over the aforementione...
by emaxt6
Thu Nov 28, 2024 4:27 pm
Forum: HTTPAPI
Topic: How does HTTPAPI get the source EBCDIC CCSID?
Replies: 6
Views: 40375

Re: How does HTTPAPI get the source EBCDIC CCSID?

...or using the OVERLOAD to select implmentation, using the same final name, but changing the number/type of parameter to let it bind to a proper implementation? just to throw some thoughts around...
by emaxt6
Thu Nov 28, 2024 4:17 pm
Forum: HTTPAPI
Topic: How does HTTPAPI get the source EBCDIC CCSID?
Replies: 6
Views: 40375

Re: How does HTTPAPI get the source EBCDIC CCSID?

If I were to do it all over again today, I would've made 1208 the default, but back in 2001 .... Yeah UTF8 is really the common and ubiquitous way nowadays... maybe would be nice to introduce in the stock header file a new wrapper routine called like "http_req_utf8" with in the prototype ...