This code makes no sense. You are writing the code as if you are calling the open() and read() APIs -- but your code says fopen and fread which are different APIs with different parameters.
Also, you posted this in the HTTPAPI forum, and it doesn't appear to be related at all to HTTPAPI.
Search found 652 matches
- Sat Dec 03, 2022 12:43 am
- Forum: RPG IV
- Topic: XML-INTO XML parser detected error code 2.
- Replies: 19
- Views: 20033
Re: XML-INTO XML parser detected error code 2.
When you post code, please put [code] before the first line of the snippet, and [/code] after it. This time around you posted a lot of code with very few explanations, and it is very hard to read. Sorry, I don't have time right now to go through and reformat the messages for you, like I did earlier....
- Thu Dec 01, 2022 11:09 pm
- Forum: RPG IV
- Topic: XML-INTO XML parser detected error code 2.
- Replies: 19
- Views: 20033
Re: XML-INTO XML parser detected error code 2.
I added the code tags because it was hard to read... Maybe that fixed the XML formatting problem, too.
- Thu Dec 01, 2022 7:28 pm
- Forum: YAJL-ILE
- Topic: How to set response headers
- Replies: 6
- Views: 2037
Re: How to set response headers
yajl_writeStdout is pretty simplistic -- and doesn't have code to allow you to customize the headers. I could consider adding that if enough people are interested -- but you are the first one that's ever asked for it. You could, of course, use yajl_copyBufStr() or similar to get the JSON data into y...
- Thu Dec 01, 2022 7:20 pm
- Forum: HTTPAPI
- Topic: Server using a single key authentication
- Replies: 9
- Views: 6963
Re: Server using a single key authentication
Yes, if you're trying to do a bearer token, the token is placed in the "password" field of http_setAuth. The example data you provided does not look like a typical bearer token to me -- but, if that's the correct token for this particular service, then it should work fine if placed in the ...
- Thu Dec 01, 2022 7:12 pm
- Forum: RPG IV
- Topic: XML-INTO XML parser detected error code 2.
- Replies: 19
- Views: 20033
Re: XML-INTO XML parser detected error code 2.
The problem (maybe this was what Jon was saying?) is the path. Your path doesn't include all of the XML elements it needs to get to the "limits" tag. Notice the outermost element of your document is soapenv:Envelope, but for some reason your path starts at "result". To try it out...
- Thu Dec 01, 2022 6:41 pm
- Forum: RPG IV
- Topic: XML-INTO XML parser detected error code 2.
- Replies: 19
- Views: 20033
Re: XML-INTO XML parser detected error code 2.
The XML looks okay to me, aside from some extra linefeeds (that were probably an artifact of the way it was copy/pasted) Here it is reformatted: <?xml version='1.0' encoding='UTF-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns5:getCardRe...
- Sun Nov 27, 2022 6:04 pm
- Forum: HTTPAPI
- Topic: DATA-GEN encountering RNX0355 error
- Replies: 4
- Views: 5730
Re: DATA-GEN encountering RNX0355 error
Inside that ZIP file is an IBMi save file called YAJLLIB72.savf -- if you restore that to your IBM i it will contain all of the YAJL tools.
Read the README.txt file inside that ZIP file for details.
Read the README.txt file inside that ZIP file for details.
- Fri Nov 25, 2022 2:40 pm
- Forum: HTTPAPI
- Topic: DATA-GEN encountering RNX0355 error
- Replies: 4
- Views: 5730
Re: DATA-GEN encountering RNX0355 error
Is the YAJLDTAGEN program on your system? Is it in your library list? How about the service programs YAJLR4 and YAJL, are they there and in your library list?
- Thu Nov 24, 2022 2:22 am
- Forum: HTTPAPI
- Topic: HTTPAPI Error for Ocp-Apim-Subscription-Key
- Replies: 2
- Views: 2265
Re: HTTPAPI Error for Ocp-Apim-Subscription-Key
Either the server isn't running, or a firewall is blocking access, or you have the wrong URL, or something like that.
A header can't cause the connection to time out.
A header can't cause the connection to time out.