Search found 661 matches

by Scott Klement
Tue Jan 24, 2023 12:18 am
Forum: YAJL-ILE
Topic: YAJL and nested JSON Arrays
Replies: 4
Views: 4133

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: 3575

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: 5
Views: 4228

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: 3438

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: 2886

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: 1881

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: 1436

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: 1881

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...
by Scott Klement
Fri Dec 30, 2022 10:45 pm
Forum: HTTPAPI
Topic: Data Structure question in receiving json message using YAJLINTO
Replies: 1
Views: 2877

Re: Data Structure question in receiving json message using YAJLINTO

RPG defaults to expecting the JSON variable names to be in all-lowercase. Since yours contain uppercase, they won't match the RPG variable names... it's a poor default, in my opinion, but... that's what IBM decided to do. Change your statement to use case=convert (I recommend always using this unles...
by Scott Klement
Fri Dec 30, 2022 10:27 pm
Forum: HTTPAPI
Topic: Help with passing client_id & client_secrete in POST for access token
Replies: 1
Views: 2972

Re: Help with passing client_id & client_secrete in POST for access token

You haven't provide much information aside from that it's not working for you. Have you tried using HTTPAPI's tools for creating form data, instead of building the form manually? Also, your Postman example is using form-data, but your HTTPAPI example is using x-www-form-urlencoded. I don't just mean...