Search found 658 matches

by Scott Klement
Wed Oct 19, 2022 10:14 pm
Forum: HTTPAPI
Topic: Persistent connection
Replies: 3
Views: 5867

Re: Persistent connection

You would need to change your code to call the following routines: http_persist_open(): This establishes the initial connection to the server that will persist. This returns a connection handle to the opened connection. http_persist_req(): This may be called many times (with a different URL each tim...
by Scott Klement
Tue Oct 18, 2022 7:33 pm
Forum: HTTPAPI
Topic: HTTPAPI Performance questions
Replies: 15
Views: 12844

Re: HTTPAPI Performance questions

It's waiting for the data to arrive on the network.
by Scott Klement
Mon Oct 17, 2022 11:24 pm
Forum: HTTPAPI
Topic: HTTPAPI Performance questions
Replies: 15
Views: 12844

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

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

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

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

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

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

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

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.