User Tools

Site Tools


integration_with_other_systems

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
integration_with_other_systems [2024/04/04 10:17] – [Troubleshooting CURL requests from WebHMI] emozolyakintegration_with_other_systems [2024/04/04 10:18] (current) – [Troubleshooting CURL requests from WebHMI] emozolyak
Line 126: Line 126:
  
 ==== Troubleshooting CURL requests from WebHMI ==== ==== Troubleshooting CURL requests from WebHMI ====
-When troubleshooting your requests, you can turn on verbose information + 
 +When troubleshooting your requests, you can turn on verbose information in your script. Please refer to the example below:
  
 <code lua> <code lua>
Line 140: Line 141:
              }              }
            
-     c : setopt{[cURL.OPT_VERBOSE] = 1}  -- verbose info +     -- sw on verbose info  
 +     c : setopt{[cURL.OPT_VERBOSE] = 1}  
      c : setopt{[cURL.OPT_DEBUGFUNCTION] = function(...)       c : setopt{[cURL.OPT_DEBUGFUNCTION] = function(...) 
                 for i, v in pairs(arg) do DEBUG(i .. ' ' .. v) end                  for i, v in pairs(arg) do DEBUG(i .. ' ' .. v) end 
                 return 0                 return 0
-         end }  -- verbose info +         end }  
            
      c : perform{writefunction = function(str)      c : perform{writefunction = function(str)
integration_with_other_systems.1712225826.txt.gz · Last modified: 2024/04/04 10:17 by emozolyak

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki