× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Scott,

Thanks for the response. For now i am starting with http_req, will explore
further based on the response from Charles.

Thanks again for your help.

Regards,
Suren

On Fri, Oct 2, 2020 at 11:26 PM Scott Klement <sk@xxxxxxxxxxxxxxxx> wrote:

Hello Suren,

There is no performance delay in using http_req().

Using http_string() may be slightly slower than http_req() due to the
way it handles return values, but I also don't think you'd notice the
difference. It is a very small amount of time that most people will not
see -- the bottleneck is almost always the network, not copying bytes
around on the local system. But, if indeed you are worried about the
tiny amount of extra processing in http_string, simply call http_req
instead.

Good Luck,

-SK


On 10/2/2020 12:06 AM, Suren K wrote:
Hi Everyone,

I am exploring Scott Klement's HTTPAPI for making outbound HTTP requests
from IBMi.

I could see http_req() is the function used for making all types of HTTP
requests. Also i could see the HTTP_string() function for making all
types
of HTTP requests for shorter strings (which in turn used http_req() for
processing).

I am planning to use http_req() directly for all types of requests
(shorter
and also longer strings), will it create any performance delay or using
http_req() directly will execute any additional steps?

Could you please give me your suggestions in it?

Regards,
Surender K
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.