Support binary for okutil_http_ex function


Version: 2024b

Type: Features

Category: Programming

Subcategory: Origin C

Jira: ORG-28773


Example:

void test_http_post_binary_file()
{
	OCHTTP_t http;
	http.dwOptions = OCHTTP_POST | OCHTTP_SRC_FILE | OCHTTP_SRC_BIN;
	http.bIgnoreCertError = true;
	http.pcszSrc = "C:\\Users\\sam\\Desktop\\TestPost.opju"; //Replace with your file
	int err = okutil_http_ex("https://posttestserver.dev/p/3qsy1gsnu2848b5a/post", &http);
	printf("err %d\n", err);
}