× 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.



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

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.