Search found 655 matches

by Scott Klement
Mon Dec 05, 2022 2:53 am
Forum: HTTPAPI
Topic: FOPEN(
Replies: 12
Views: 11473

Re: FOPEN(

Well, he's probably calling open(), but just to confuse us, has renamed it to fopen().... so the O_TRUNC is the likely culprit.

It'd be nice if he'd come on here and tell us that so we don't have to guess.
by Scott Klement
Sun Dec 04, 2022 9:26 am
Forum: RPG IV
Topic: XML-INTO XML parser detected error code 2.
Replies: 19
Views: 20135

Re: XML-INTO XML parser detected error code 2.

Sorry, I don't understand why you are searching for <Result> and substringing off all of the XML before it. Use the "path" option on xml-into so that this isn't necessary -- see the example I posted earlier. I already showed you how to make the whole thing work. I don't understand what you...
by Scott Klement
Sun Dec 04, 2022 1:56 am
Forum: HTTPAPI
Topic: FOPEN(
Replies: 12
Views: 11473

Re: FOPEN(

Well, if he were calling the open() API, yes. O_TRUNC makes no sense in the context of fopen()
by Scott Klement
Sat Dec 03, 2022 12:46 am
Forum: HTTPAPI
Topic: FOPEN(
Replies: 12
Views: 11473

Re: FOPEN(

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.
by Scott Klement
Sat Dec 03, 2022 12:43 am
Forum: RPG IV
Topic: XML-INTO XML parser detected error code 2.
Replies: 19
Views: 20135

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....
by Scott Klement
Thu Dec 01, 2022 11:09 pm
Forum: RPG IV
Topic: XML-INTO XML parser detected error code 2.
Replies: 19
Views: 20135

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.
by Scott Klement
Thu Dec 01, 2022 7:28 pm
Forum: YAJL-ILE
Topic: How to set response headers
Replies: 6
Views: 2059

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...
by Scott Klement
Thu Dec 01, 2022 7:20 pm
Forum: HTTPAPI
Topic: Server using a single key authentication
Replies: 9
Views: 6995

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 ...
by Scott Klement
Thu Dec 01, 2022 7:12 pm
Forum: RPG IV
Topic: XML-INTO XML parser detected error code 2.
Replies: 19
Views: 20135

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...
by Scott Klement
Thu Dec 01, 2022 6:41 pm
Forum: RPG IV
Topic: XML-INTO XML parser detected error code 2.
Replies: 19
Views: 20135

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...