Welcome Guest, Not a member yet? Register   Sign In
Curl best practice for API calls? Protecting sensitive data like API keys
#4

(06-19-2024, 04:55 PM)minsk832 Wrote: So there is no need to specifically use single_service() in my libraries that use curl requests? The options for curl requests passed to the constructor are usually not shared?

No! You should use single_service() to protect sensitive data.

The options for curl requests passed to the constructor are always shared.

The options to the request() method are not shared.
See https://www.codeigniter.com/user_guide/l...ml#headers
In the sample code, the headers are not shared in the next request.
Reply


Messages In This Thread
RE: Curl best practice for API calls? Protecting sensitive data like API keys - by kenjis - 06-19-2024, 06:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB