Search found 8 matches
- Thu Jan 05, 2023 5:11 pm
- Forum: YAJL-ILE
- Topic: Is getenv('REQUEST_URI') required?
- Replies: 4
- Views: 1740
Re: Is getenv('REQUEST_URI') required?
Hi Scott. Maybe I'm confused as to what a CGI program is. This is new to me. I was able to get the QtmhWrStout to send the data to the endpoint in Postman, but when I hardcode the endpoint in the program it did not send the data to the logic app. I'm thinking it's because I'm executing a POST to the...
- Thu Jan 05, 2023 4:23 pm
- Forum: YAJL-ILE
- Topic: Issue with EBCIDIC to ASCII conversion
- Replies: 2
- Views: 1345
Re: Issue with EBCIDIC to ASCII conversion
I figured that out. When I changed it to text/json it worked. Thanks, Scott.
- Wed Jan 04, 2023 10:13 pm
- Forum: YAJL-ILE
- Topic: Is getenv('REQUEST_URI') required?
- Replies: 4
- Views: 1740
Re: Is getenv('REQUEST_URI') required?
Well, I was able to do it, but I had to include HTTPAPI to do a POST to the URI. Not sure if that's the "best" way to do it, but it worked.
- Wed Jan 04, 2023 7:26 pm
- Forum: YAJL-ILE
- Topic: Is getenv('REQUEST_URI') required?
- Replies: 4
- Views: 1740
Is getenv('REQUEST_URI') required?
Can anyone tell me if a getenv('REQUEST_URI') is required? I'm creating a CGI program that will create a JSON file and send it to a URL without a requesting URI. The idea is that this program can be scheduled to run and send the data to the URL. I have it working with a request_uri, but that's a GET...
- Wed Jan 04, 2023 5:13 pm
- Forum: YAJL-ILE
- Topic: How to set response headers
- Replies: 6
- Views: 2192
Re: How to set response headers
I'm still stumped. My rpg program is writing out: Content-type: application/json Access-Control-Allow-Origin: * { "ping": "ping" } When I request it from the browser, I get a 500 error with the message: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the r...
- Tue Jan 03, 2023 11:19 pm
- Forum: YAJL-ILE
- Topic: Issue with EBCIDIC to ASCII conversion
- Replies: 2
- Views: 1345
Issue with EBCIDIC to ASCII conversion
I have a program written to return a JSON, but in Postman it appears as garbage. I'm assuming I'm missing something in the httpd.conf file. I looked at the httpd.conf file and it had a 'CgiConvMode %%MIXED/MIXED%%' but nothing for the DefaultFsCCSID and DefaultNetCCSID. When I look at the apachedft ...
- Thu Dec 29, 2022 4:51 pm
- Forum: YAJL-ILE
- Topic: Issue returning JSON to the calling URI
- Replies: 2
- Views: 1503
Re: Issue returning JSON to the calling URI
Thank you, Scott. I'm now getting data returned, but it isn't ASCII. I looked at the httpd.conf file and it had a 'CgiConvMode %%MIXED/MIXED%%' but nothing for the DefaultFsCCSID and DefaultNetCCSID. When I look at the apachedft job I see these attributes: CODED CHARACTER SET IDENTIFIER . . . . . . ...
- Mon Dec 26, 2022 10:01 pm
- Forum: YAJL-ILE
- Topic: Issue returning JSON to the calling URI
- Replies: 2
- Views: 1503
Issue returning JSON to the calling URI
I'm trying to read a row from an SQL, reformat it to a JSON using YAJL and send it back to the calling URI. I'm using Postman for the call and I am getting a 500 status "Internal server error" returned. I know it's finding my RPG program, because I've also added yajl_saveBuf() to save it t...