Search found 666 matches

by Scott Klement
Mon Oct 17, 2022 11:24 pm
Forum: HTTPAPI
Topic: HTTPAPI Performance questions
Replies: 15
Views: 13260

Re: HTTPAPI Performance questions

This is what I see: 2022-10-17-10.57.49.000000: recvresp: reading response header, space left=32767 HTTP/1.1 200 OK 2022-10-17-10.57.53.295000: recvresp: reading response header, space left=32750 Cache-Control: no-cache So that is a more than 4 second wait time between the server sending you "O...
by Scott Klement
Fri Oct 14, 2022 4:45 pm
Forum: RPG IV
Topic: STRPCCMD Issues
Replies: 5
Views: 4088

Re: STRPCCMD Issues

If the command allows more than 123 characters, but the PC is truncating it to 123 characters, it likely means you are running an old version of the emulation software that hasn't been upgraded to the 1023 limit yet. Consider using the current version of IBM Access Client Solutions, it will support ...
by Scott Klement
Fri Oct 14, 2022 4:43 pm
Forum: HTTPAPI
Topic: HTTPAPI Performance questions
Replies: 15
Views: 13260

Re: HTTPAPI Performance questions

To get more detail on what is happening, please use HTTPAPI's performance tracing. To do that, code this near the start of the program: HTTP_setDebugLevel(2); HTTP_Debug(*ON: '/tmp/assignment400_log.txt'); When you run your HTTP requests and reproduce the problem, a plethora of data should be logged...
by Scott Klement
Fri Oct 14, 2022 4:25 pm
Forum: RPG IV
Topic: STRPCCMD Issues
Replies: 5
Views: 4088

Re: STRPCCMD Issues

IBM increased the length of STRPCCMD a long time ago -- it hasn't been limited to 123 in years. It is 1023 characters since IBM i 7.2

What OS release are you on?
by Scott Klement
Fri Oct 14, 2022 4:22 pm
Forum: HTTPAPI
Topic: Authentication on GET help
Replies: 2
Views: 5947

Re: Authentication on GET help

You can specify the content-type in the "content-type" parameter. Please don't try to supply it manually. The authorization header you are using is non-standard (it does not conform with the internet standards for HTTP). So you will not be able to use setAuth or setOption to set it. You ca...
by Scott Klement
Fri Oct 14, 2022 4:15 pm
Forum: HTTPAPI
Topic: HTTPAPI Performance questions
Replies: 15
Views: 13260

Re: HTTPAPI Performance questions

I added the code tags for you, this time. In the future, please post code like this (in the forum message editor): [code] /if defined(*CRTBNDRPG) Ctl-Opt DFTACTGRP(*NO) ACTGRP('KLEMENT'); /endif ... etc ... rest of code here ... [/code] Placing [code] before the pasted code and [/code] after it will...
by Scott Klement
Wed Oct 12, 2022 10:31 pm
Forum: HTTPAPI
Topic: HTTPAPI Performance questions
Replies: 15
Views: 13260

Re: HTTPAPI Performance questions

assignment400 wrote: Wed Oct 12, 2022 10:18 pm The times I am seeing are
- preparing to call is about .02 seconds
- Consuming the web service is between .8 to 5 seconds
What is meant by "preparing to call" and "consuming the web service"? How are you deriving these numbers?
by Scott Klement
Wed Oct 12, 2022 9:22 pm
Forum: General
Topic: Help with 5250 protocol
Replies: 4
Views: 6009

Re: Help with 5250 protocol

The best reference I've found for the 5250 protocol is the 5494 Functions Reference Manual from IBM. See if you can get a copy of that.
by Scott Klement
Thu Sep 29, 2022 12:42 am
Forum: YAJL-ILE
Topic: JSON numbers in Scientific Notation
Replies: 6
Views: 14602

Re: JSON numbers in Scientific Notation

That's a floating point number.

I haven't seen yajl_addnum() do that. Are you certain you are using yajl_addnum (rather than yajl_addnumf)? And are you certain that it isn't already in that format before you add it? Can you show us the code you're using?
by Scott Klement
Tue Sep 27, 2022 9:32 pm
Forum: YAJL-ILE
Topic: DATA-INTO and ALWBLANKNUM
Replies: 4
Views: 2515

Re: DATA-INTO and ALWBLANKNUM

You can find the PTFs here -- though, I don't see why you'd want to install the PTF numbers from 2020 -- just install the current ones then you'll have all of the new features and fixes.
https://www.ibm.com/support/pages/node/6342819