Search found 909 matches

by Scott Klement
Thu Sep 04, 2025 4:31 pm
Forum: HTTPAPI
Topic: HTTP_POINT_ADDL_HEADER Header parameters
Replies: 7
Views: 27701

Re: HTTP_POINT_ADDL_HEADER Header parameters

I'm not familiar with using a JWT this way. You'll need to consult the documentation for the authorization server you are communicating with.
by Scott Klement
Fri Aug 29, 2025 11:02 pm
Forum: HTTPAPI
Topic: HTTPAPI crashing. Error messge: ":” The length requested for storage allocation is out of range.”
Replies: 5
Views: 24288

Re: HTTPAPI crashing. Error messge: ":” The length requested for storage allocation is out of range.”

Hello,

The document you provided is not a well-formed XML document. As such, in order to try to do anything with it, I have to modify it.

I simply enclosed the whole thing in <xml> and </xml> to make it a valid XML document. Then I tried having HTTPAPI parse it, and it did so without any error ...
by Scott Klement
Fri Aug 29, 2025 10:41 pm
Forum: HTTPAPI
Topic: Need to return Large XML and JSON data over 16 meg
Replies: 5
Views: 39817

Re: Need to return Large XML and JSON data over 16 meg

Sorry, I don't understand. Why is this subprocedure called "endproc"? What is it the end of?

http_url_post_raw() is something I don't recommend using today. It is meant for doing all the logic to handle the data in your program (i.e. it is the raw response.) Instead, please consider using http_req ...
by Scott Klement
Fri Aug 15, 2025 1:17 am
Forum: YAJL-ILE
Topic: YAJL_OBJECT_LOOP not working on second level group
Replies: 5
Views: 21462

Re: YAJL_OBJECT_LOOP not working on second level group

Correct, it is an array, not an object.

If you want to loop through the contents of the array, by all means use yajl_array_loop() as jon suggested.

But if you just want to grab a single element, use yajl_array_elem().
by Scott Klement
Fri Aug 15, 2025 1:14 am
Forum: General
Topic: sFTP using Expect tool
Replies: 3
Views: 33038

Re: sFTP using Expect tool

ADDENVVAR ENVVAR(QIBM_MULTI_THREADED) VALUE(Y) prior to runing QShell.

*if* that's the problem. IF not, then troubleshoot and determine the problem.
by Scott Klement
Fri Aug 08, 2025 6:17 pm
Forum: HTTPAPI
Topic: Sending JSON in the body of an HTTP request
Replies: 4
Views: 19518

Re: Sending JSON in the body of an HTTP request

all you needed to do was change %addr(request) to %addr(request:*data)

no point in going back to the 1990s.
by Scott Klement
Fri Aug 08, 2025 5:53 pm
Forum: HTTPAPI
Topic: HTTPAPI crashing. Error messge: ":” The length requested for storage allocation is out of range.”
Replies: 5
Views: 24288

Re: HTTPAPI crashing. Error messge: ":” The length requested for storage allocation is out of range.”


Does this have to do with the XmlReturnPtr feature you mentioned? How can I tell if we are using that?


Did you code it? Are you calling the http_XmlReturnPtr() subprocedure?


Scott, I am trying to attach a .txt with just the node that is causing HTTPAPI to crash but it may be too big to ...
by Scott Klement
Fri Aug 08, 2025 5:46 pm
Forum: HTTPAPI
Topic: Sending JSON in the body of an HTTP request
Replies: 4
Views: 19518

Re: Sending JSON in the body of an HTTP request

make sure if this is a VARYING/VARCHAR field that you are getting the address of the *DATA not the address of the length prefix.
by Scott Klement
Fri Aug 08, 2025 5:44 pm
Forum: HTTPAPI
Topic: HTTP_POINT_ADDL_HEADER Header parameters
Replies: 7
Views: 27701

Re: HTTP_POINT_ADDL_HEADER Header parameters

Support for that is built-in. Just do this before your request:

Code: Select all

http_setauth(http_auth_basic : 'demo' : 'p@55w0rd' );
...http_string...and other code here...

After you are done, remove the password from memory...

Code: Select all

http_setauth(http_auth_none:'':'');