Search found 986 matches

by Scott Klement
Mon Jun 08, 2026 4:05 pm
Forum: HTTPAPI
Topic: v1.52 - Getting "Pointer not set" error on http_url_post_stmf() call.
Replies: 4
Views: 87603

Re: v1.52 - Getting "Pointer not set" error on http_url_post_stmf() call.


I got the same error (Pointer not set for location referenced' after upgrade to the latest version.

We don't pass the parameter peUserAgent (and soapaction) but it is ALWAYS required when calling http_url_post_raw2. wwUserAgent is not filled and it collapses.

It seems there's no 'else' built in ...
by Scott Klement
Tue Jun 02, 2026 6:44 pm
Forum: HTTPAPI
Topic: How to add custom http headers
Replies: 5
Views: 185434

Re: How to add custom http headers


Hi there, I am struggling to get the api call with an api key to work. Would you mind sharing your code for the sub proc
I keep getting this error : connect(2): A remote host refused an attempted connect operation.


This has nothing to do with an API key or header. It isn't getting far enough ...
by Scott Klement
Sun May 17, 2026 11:29 pm
Forum: General
Topic: Calling an ile rpg service program procedure that returns a value from a java class
Replies: 2
Views: 30901

Re: Calling an ile rpg service program procedure that returns a value from a java class

Last time I looked into this, the ServiceProgramCall class supported calling a procedure that had no return value, or that returned a 4-byte integer. So it would never work with a character return value.

That said, I haven't looked into this in probably 20 years.

I would recommend creating REST ...
by Scott Klement
Tue May 05, 2026 8:26 pm
Forum: RPG IV
Topic: IFS Write fails when using codepage 1208
Replies: 8
Views: 104584

Re: IFS Write fails when using codepage 1208

The IFS eBook was written for V3R2. I haven't removed it from my site because people still use it, but it is VERY old.

The extra parameter to open was added in V5R2, much later than V3R2.

A newer version of the copybook can be found here:
https://www.scottklement.com/rpg/copybooks
by Scott Klement
Mon Apr 27, 2026 10:21 pm
Forum: HTTPAPI
Topic: SSL_protocol: Unknown protocol 5000
Replies: 2
Views: 60392

Re: SSL_protocol: Unknown protocol 5000

That message is harmless -- its not an error.

What problem are you having?
by Scott Klement
Thu Apr 02, 2026 7:20 pm
Forum: General
Topic: sFTP with expect
Replies: 1
Views: 45271

Re: sFTP with expect

I suspect its sending the cd command immediately after the password, but the sftp server isn't ready for it yet, so ignores it.
Try adding a like that waits for the command prompt after sending the password.


#!/usr/local/bin/expect -f
set REMOTE_DIR "/cert_xxxx_name/in"
spawn sftp cert_xxxx_name ...
by Scott Klement
Sun Mar 29, 2026 10:47 pm
Forum: HTTPAPI
Topic: Support for *PUT Request Type
Replies: 9
Views: 245143

Re: Support for *PUT Request Type

In version 1.54 (now available from https://www.scottklement.com/httpapi ) the command-line tool now supports *GET, *POST, *PUT and *DELETE.

Let me know how it works for you
by Scott Klement
Fri Mar 27, 2026 12:33 pm
Forum: HTTPAPI
Topic: Support for *PUT Request Type
Replies: 9
Views: 245143

Re: Support for *PUT Request Type

Ahhhh, you are using the command interface for HTTPAPI, that's why I didn't understand you.

The current version is 1.53

The command interface hasn't been updated to support methods other than GET or PUT at this time. It could be updated, but hasn't been -- not many people use it (which makes me ...
by Scott Klement
Sun Mar 22, 2026 12:51 am
Forum: HTTPAPI
Topic: Support for *PUT Request Type
Replies: 9
Views: 245143

Re: Support for *PUT Request Type

HTTPAPI added support for the PUT request type in 2013. If you really don't have a version capable of using it, then you are VERY VERY far behind and succeptable to many security bugs, you need to update badly.

For example:

Code: Select all

dataReceived = http_string( 'PUT: url: dataToSend: 'application/json');
by Scott Klement
Thu Mar 19, 2026 2:32 pm
Forum: HTTPAPI
Topic: Support for *PUT Request Type
Replies: 9
Views: 245143

Re: Support for *PUT Request Type

HTTPAPI already supports PUT requests.

Use one of http_req(), http_string() or http_stmf() routines. Whichever one meets your needs.