Skip to content

Bug in curl settings for transferring content with nlohmann-json package #167

@Yanyanghappy

Description

@Yanyanghappy

For nlohmann-json package

Correct:curl_easy_setopt(curl, CURLOPT_POSTFIELDS, jsonString.c_str());

Error:curl_easy_setopt(curl, CURLOPT_POSTFIELDS, jsonString.dump(4).c_str());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions