#include <stdio.h>
#include <curl/curl.h>
#include "jansson.h"
#include "typedefs.h"
#include "network_library.h"
#include "byte_buffer.h"
 
Go to the source code of this file.
◆ CallSecureUrl()
      
        
          | bool CallSecureUrl  | 
          ( | 
          const char *  | 
          url_s,  | 
        
        
           | 
           | 
          const char *  | 
          header_data_s,  | 
        
        
           | 
           | 
          const char *  | 
          ca_cert_name_s,  | 
        
        
           | 
           | 
          const char *const  | 
          cert_name_s,  | 
        
        
           | 
           | 
          const char *  | 
          key_name_s,  | 
        
        
           | 
           | 
          const bool  | 
          verify_certs,  | 
        
        
           | 
           | 
          ByteBuffer *  | 
          buffer_p  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Call a secure web address. 
- Parameters
 - 
  
    | url_s | The address to get the data from.  | 
    | header_data_s | The value to use for CURLOPT_CAINFO. See the Curl documentation.  | 
    | ca_cert_name_s | The value to use for CURLOPT_CAINFO. See the Curl documentation.  | 
    | cert_name_s | The value to use for CURLOPT_SSLCERT. See the Curl documentation.  | 
    | key_name_s | The value to use for CURLOPT_SSLKEY. See the Curl documentation.  | 
    | verify_certs | If this is true then CURLOPT_SSL_VERIFYPEER will be set. See the Curl documentation.  | 
    | buffer_p | Where the data from the address will be written to  | 
  
   
- Returns
 true if the call was successful, false otherwise. 
 
 
◆ AllocateFileCurlTool()
      
        
          | CurlTool* AllocateFileCurlTool  | 
          ( | 
          const char *const  | 
          filename_s | ) | 
           | 
        
      
 
 
◆ AllocateMemoryCurlTool()
      
        
          | CurlTool* AllocateMemoryCurlTool  | 
          ( | 
          const size_t  | 
          buffer_size | ) | 
           | 
        
      
 
 
◆ GetWebData()
      
        
          | char* GetWebData  | 
          ( | 
          const char *  | 
          url_s | ) | 
           | 
        
      
 
 
◆ SetCurlToolTimeout()
      
        
          | void SetCurlToolTimeout  | 
          ( | 
          CurlTool *  | 
          tool_p,  | 
        
        
           | 
           | 
          const long  | 
          timeout  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ ClearCurlToolData()
      
        
          | void ClearCurlToolData  | 
          ( | 
          CurlTool *  | 
          tool_p | ) | 
           |