Search found 7 matches
- Wed Jul 30, 2025 4:56 pm
- Forum: HTTPAPI
- Topic: Can http_persist_get return a string instead of writing to a file
- Replies: 3
- Views: 10451
Re: Can http_persist_get return a string instead of writing to a file
I'm calling an API that returns a large amount of data in total. But in small chunks. So I'm using http_persist_open, then http_persist_get to pull in the first chunk of data. If there's more data to receive, I do a loop and continue to call http_persist_get until al data has been received. With ...
- Thu Jul 17, 2025 8:33 pm
- Forum: HTTPAPI
- Topic: Can http_persist_get return a string instead of writing to a file
- Replies: 3
- Views: 10451
Can http_persist_get return a string instead of writing to a file
On the http_persist_get procedure, instead of calling a file writer in the 3rd parm, can I override it to another procedure? I don't really need the data written to a file. I would just like to have the json returned in a string. If possible, please point me to a working example.
- Thu Jul 17, 2025 8:20 pm
- Forum: HTTPAPI
- Topic: ommSSL_read: timeout
- Replies: 5
- Views: 13059
Re: ommSSL_read: timeout
I was doing a post instead of a get. Rookie mistake because I coped code. But still didn't fix my problem The Get works on my on-premise development box running v7r3, but not on our IBM cloud PowerVS running v7r5. I suspect the problem is related to the VPN / firewall. I'm continuing to test on my ...
- Fri Jul 11, 2025 8:56 pm
- Forum: HTTPAPI
- Topic: ommSSL_read: timeout
- Replies: 5
- Views: 13059
Re: ommSSL_read: timeout
I've made some program changes, but I'm still getting error ommSSL_read: timeout.
Here's some of my relevant code.
userid = *blanks;
password = Access; // Load the access token into the password input field.
http_setAuth( HTTP_AUTH_BEARER
: %trim(Userid)
: %trim(Password) );
form_data ...
Here's some of my relevant code.
userid = *blanks;
password = Access; // Load the access token into the password input field.
http_setAuth( HTTP_AUTH_BEARER
: %trim(Userid)
: %trim(Password) );
form_data ...
- Fri Jul 11, 2025 3:57 pm
- Forum: HTTPAPI
- Topic: ommSSL_read: timeout
- Replies: 5
- Views: 13059
Re: ommSSL_read: timeout
Correction on my statement "But it doesn't create a log file."
A log file is being created, but it doesn't show much other than the error "CommSSL_read: timeout!". I tried to attach the log file as .txt, but it doesn't allow .txt attachments. So I pasted most of the log as code below. I changed ...
A log file is being created, but it doesn't show much other than the error "CommSSL_read: timeout!". I tried to attach the log file as .txt, but it doesn't allow .txt attachments. So I pasted most of the log as code below. I changed ...
- Thu Jul 10, 2025 7:11 pm
- Forum: HTTPAPI
- Topic: ommSSL_read: timeout
- Replies: 5
- Views: 13059
Re: ommSSL_read: timeout
FYI - My HTTPAPI_VERSION = '1.52'
I have http_debug(*on:'/tmp/paycor-diagnostic-log.txt');
But it doesn't create a log file.
I have another RPG program that calls the same website, for another API, but the API doesn't require authentication. It works fine.
I just load the form data;
form_data ...
I have http_debug(*on:'/tmp/paycor-diagnostic-log.txt');
But it doesn't create a log file.
I have another RPG program that calls the same website, for another API, but the API doesn't require authentication. It works fine.
I just load the form data;
form_data ...
- Thu Jul 10, 2025 6:54 pm
- Forum: HTTPAPI
- Topic: ommSSL_read: timeout
- Replies: 5
- Views: 13059
ommSSL_read: timeout
I'm trying to call a REST API and the call to http_string gets stuck for about 60 seconds, then it returns error ommSSL_read: timeout. Any ideas if I may be doing something wrong?
I have setup a call to the API via the Postman website and it works fine. So I think I have the parms correct.
The API ...
I have setup a call to the API via the Postman website and it works fine. So I think I have the parms correct.
The API ...