Search found 343 matches

by Scott Klement
Sun Jan 29, 2023 12:45 am
Forum: HTTPAPI
Topic: gsk_env_init: (GSKit) Storage allocation request failed.
Replies: 3
Views: 71

Re: gsk_env_init: (GSKit) Storage allocation request failed.

I make new releases when I find a need to make one... there's no schedule, its just done when needed.

Seems like the change is trivial, why not just make it?
by Scott Klement
Sun Jan 29, 2023 12:44 am
Forum: YAJL-ILE
Topic: YAJL and nested JSON Arrays
Replies: 3
Views: 53

Re: YAJL and nested JSON Arrays

The easiest thing would be to use DATA-INTO instead of calling the subprocedures. But, if you do want to call the subprocedures, package is an array -- so you'd need to tell it which array element you want. (Probably always #1 if you're only expecting one package.) Then within that array element, is...
by Scott Klement
Tue Jan 24, 2023 12:18 am
Forum: YAJL-ILE
Topic: YAJL and nested JSON Arrays
Replies: 3
Views: 53

Re: YAJL and nested JSON Arrays

UPS allows you to track multiple shipments in a given response. So "shipment" is an array -- there's only one in your case, but it's possible for there to be more than one. Likewise, within a given shipment, there can be more than one package. Within a given package, there can (and almost ...
by Scott Klement
Mon Jan 23, 2023 9:14 pm
Forum: General
Topic: Question about QNTC
Replies: 1
Views: 49

Re: Question about QNTC

It should be possible, provided that the domain is available -- i.e. your network is allowed to access it.

You may have to create the link to the server with MKDIR in order for it to find it, for example:

Code: Select all

MKDIR '/QNTC/TheServer'
or

Code: Select all

MKDIR '/QNTC/192.168.4.27'
by Scott Klement
Mon Jan 23, 2023 9:09 pm
Forum: HTTPAPI
Topic: gsk_env_init: (GSKit) Storage allocation request failed.
Replies: 3
Views: 71

Re: gsk_env_init: (GSKit) Storage allocation request failed.

Yes, anytime it returns *OFF from CommSSL_Upgrade, it should be cleaning up the socket with gsk_secure_soc_close(). So, that does sound like a possible bug... it should look more like this: c eval rc = gsk_secure_soc_init(wwSslh) c if rc <> GSK_OK c if rc = GSK_IBMI_ERROR_TIMED_OUT c callp SetError(...
by Scott Klement
Wed Jan 11, 2023 2:28 am
Forum: HTTPAPI
Topic: Using OAUTH2 with HTTPAPI
Replies: 4
Views: 127

Re: Using OAUTH2 with HTTPAPI

If you haven't already done so, I would start by getting a "big picture" view of what OAUTH2 is. This video is a pretty good introduction: https://www.youtube.com/watch?v=CPbvxxslDTU When you look at this, I think you'll see pretty clearly that HTTPAPI can only provide part of the process....
by Scott Klement
Wed Jan 11, 2023 2:12 am
Forum: HTTPAPI
Topic: HTTPAPI 1.40 to 1.45 upgrade question
Replies: 1
Views: 70

Re: HTTPAPI 1.40 to 1.45 upgrade question

No, HTTPAPI is always kept backward compatable -- so you can always upgrade it without affecting existing programs.
by Scott Klement
Wed Jan 11, 2023 2:12 am
Forum: YAJL-ILE
Topic: Is getenv('REQUEST_URI') required?
Replies: 4
Views: 124

Re: Is getenv('REQUEST_URI') required?

There are two sides to it... the "consumer", is the caller -- it is typically an application that needs the API to do some work for it. It makes a request to the API by "calling a URL" (or connecting to an endpoint) and sending it a JSON document (or various other document types ...
by Scott Klement
Thu Jan 05, 2023 8:38 am
Forum: YAJL-ILE
Topic: Issue with EBCIDIC to ASCII conversion
Replies: 2
Views: 87

Re: Issue with EBCIDIC to ASCII conversion

As it says in the message you quoted, the Apache server doesn't typically perform conversion on application/json (or any non-text media types).
by Scott Klement
Thu Jan 05, 2023 8:36 am
Forum: YAJL-ILE
Topic: Is getenv('REQUEST_URI') required?
Replies: 4
Views: 124

Re: Is getenv('REQUEST_URI') required?

getenv('REQUEST_URI') is when writing a CGI program that runs under the IBM HTTP Server (powered by Apache). It lets you retrieve the URI (also called "URL") that the caller used to run your program. You mention that you are using HTTPAPI... and that is confusing me. If you are using HTTPA...