Take a look at this post - it shows how to add such headers.
viewtopic.php?p=97#p97
Search found 210 matches
- Thu Oct 07, 2021 11:52 am
- Forum: HTTPAPI
- Topic: Adding Auth Key to HTTP Header
- Replies: 5
- Views: 14730
- Tue Sep 28, 2021 2:22 pm
- Forum: RPG IV
- Topic: MCH3601 - Pointer not set for location referenced
- Replies: 2
- Views: 9943
Re: MCH3601 - Pointer not set for location referenced
Usual reason is just what it says ... you tried to use a pointer that has not been set. Possible causes: - Parameter that wasn't passed and not tested for - Call to a YAJL function that returns a pointer that did not result in a "hit" and so the pointer was not set and then attempted to be...
- Fri Sep 24, 2021 3:53 pm
- Forum: HTTPAPI
- Topic: Adding Auth Key to HTTP Header
- Replies: 5
- Views: 14730
Re: Adding Auth Key to HTTP Header
Perhaps if you showed us what you are sending with Postman we could understand the type of authentication you are trying to do.
- Mon Aug 30, 2021 7:55 pm
- Forum: YAJL-ILE
- Topic: trying to output JSONL (anybody heard of it?)
- Replies: 3
- Views: 9857
Re: trying to output JSONL (anybody heard of it?)
Looking at the sample data it looks as if an easy approach would be to use DATA-GEN with the YAJL generator to place the json in a varchar variable, then add the CR/LF (or whatever you need) and write it out to the IFS. Could easily buffer it in a large varchar field.
- Wed Aug 25, 2021 4:15 pm
- Forum: HTTPAPI
- Topic: PUT with If-Match Header?
- Replies: 2
- Views: 11809
Re: PUT with If-Match Header?
Basically you will need to use http_xproc to declare the procedure to add the custom headers. This is called _before_ you call the http_... function to invoke the web service. The http API will then call your routine while building the request. Here's a snippet of what I use to invoke Zoom APIs. htt...
- Thu Aug 12, 2021 2:50 am
- Forum: YAJL-ILE
- Topic: Consume Dynamic JSON
- Replies: 2
- Views: 9566
Re: Consume Dynamic JSON
Your option 1 includes an incorrect assumption. You CAN have the same name in multiple DS you just have to specify them as qualified. In fact that is exactly the way I have handled this scenario in the past.
- Thu Aug 05, 2021 5:13 pm
- Forum: YAJL-ILE
- Topic: Reading Json Data using Data-INTO
- Replies: 4
- Views: 11195
Re: Reading Json Data using Data-INTO
This is what I've been using with the Zoom APIs. Simple but it does the job. // DSs for re-mapping of Zoom timestamp to RPG compatible format // Initial format is yyyy-mm-ddThh:mm:ssZ (e.g. 2020-05-08T19:41:44Z) // which appears to be ISO 8601 Dcl-ds zoomTimestamp Qualified; date char(10); *n char(1...
- Wed Aug 04, 2021 5:21 pm
- Forum: YAJL-ILE
- Topic: Reading JSON Problem(s)
- Replies: 13
- Views: 23327
Re: Reading JSON Problem(s)
I notice that you are still specifying to copy in the YAJL header files and referencing the binding directory. Can't think why that would cause issues but ...
- Wed Aug 04, 2021 5:19 pm
- Forum: YAJL-ILE
- Topic: Reading JSON Problem(s)
- Replies: 13
- Views: 23327
Re: Reading JSON Problem(s)
Sorry - off the top of my head I have no clue. Will try to take another look at it later on.
Just out of interest, what happens if you just call YAJLINTO from the command line? Can the system find it then?
Just out of interest, what happens if you just call YAJLINTO from the command line? Can the system find it then?
- Wed Aug 04, 2021 3:24 pm
- Forum: YAJL-ILE
- Topic: Reading JSON Problem(s)
- Replies: 13
- Views: 23327
Re: Reading JSON Problem(s)
If you are not that familiar with the workings of YAJL then why not make life simpler for yourself and use DATA-INTO with the YAJLINTO parser? You've already got the DS (or close to it) so it should be easy. If you are not familiar with DATA-INTO I have written several articles on the topic and most...