Skip to content
Discussion options

You must be logged in to vote

Hello @wgonzalez2323.

Since the poolman is working, I'm assuming that the network_settings.cgi request is correct. So, check if your code contains the JSON headers in vapix_post

// JSON headers
struct curl_slist* headers = NULL;
headers = curl_slist_append(headers, "Content-Type: application/json");
headers = curl_slist_append(headers, "Accept: application/json");
curl_easy_setopt(handle, CURLOPT_HTTPHEADER, headers);

The attached vapix_example.c is working correctly.

Expected output:

----- Contents of SYSTEM_LOG for 'vapix_example' -----


2025-11-12T18:05:25.537+01:00 axis-b8a44f279ba8 [ INFO    ] vapix_example[4164]: Curl version 8.12.1
2025-11-12T18:05:25.538+01:00 axis-b8a44f279ba8 …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ftor-work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants