Search found 652 matches

by Scott Klement
Fri Oct 14, 2022 4:22 pm
Forum: HTTPAPI
Topic: Authentication on GET help
Replies: 2
Views: 5774

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: 12722

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: 12722

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: 5812

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: 13342

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: 2252

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
by Scott Klement
Tue Sep 27, 2022 2:09 am
Forum: FTPAPI
Topic: Passive Send No Longer Working
Replies: 1
Views: 7671

Re: Passive Send No Longer Working

FTPAPI doesn't support extended passive mode (unless someone else added it? I didn't.) so there's no such thing as 'EPSV' (which is short for "extended passive') in FTPAPI.

Does your firewall require extended passive mode in order to allow FTP traffic?
by Scott Klement
Tue Sep 27, 2022 2:07 am
Forum: HTTPAPI
Topic: How to change the filename in http_mfd_encoder_addstmf
Replies: 2
Views: 5264

Re: How to change the filename in http_mfd_encoder_addstmf

Currently there isn't an option in HTTPAPI to remove the path, but you could do it with: Use the IFS chdir() procedure to switch to the directory containing the attachment. only use the filename (not the entire pathname) when calling http_mfd_encoder_addstmf For example: /copy IFSIO_H . . chdir('/ho...
by Scott Klement
Tue Sep 27, 2022 1:59 am
Forum: YAJL-ILE
Topic: Data-Into loses embedded blanks
Replies: 1
Views: 1241

Re: Data-Into loses embedded blanks

Hiya Alan, Thanks for reaching out. The RPG DATA-INTO opcode has an option called 'trim' that can be used to trim blanks. I'm referring to the TRIM option of the %DATA built-in function (not to be confused with the %TRIM built-in function.) Many people don't realize that in addition to trimming off ...
by Scott Klement
Mon Sep 19, 2022 4:07 pm
Forum: HTTPAPI
Topic: HTTPAPI EXAMPLES
Replies: 1
Views: 5702

Re: HTTPAPI EXAMPLES

Unfortunately, the peope who hosted that free web service took it offline permanently. Do you know of another freely accessible SOAP web service that I could use to replace it? I don't. Since SOAP has been largely replaced by REST, it is hard to find examples. I would suggest trying some REST exampl...