![]() |
(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. |
Messages In This Thread |
Curl best practice for API calls? Protecting sensitive data like API keys - by minsk832 - 06-18-2024, 08:55 PM
RE: Curl best practice for API calls? Protecting sensitive data like API keys - by kenjis - 06-18-2024, 09:24 PM
RE: Curl best practice for API calls? Protecting sensitive data like API keys - by minsk832 - 06-19-2024, 04:55 PM
RE: Curl best practice for API calls? Protecting sensitive data like API keys - by kenjis - 06-19-2024, 06:25 PM
|