Help with string and libcurl c++

Asked

Viewed 38 times

0

Good night.

This is the first time I publish something here, I would like help with a program I’m doing to streamline some processes there at work, I’m not a programmer I’m just learning already searched in several places but I found no answer,

    int contagem = 05;
    while( contagem < 15 ){


{
    curl = curl_easy_init();
    if(curl) {



        curl_easy_setopt(curl, CURLOPT_URL, "http://teste.teste/upload.php");
        curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "senha=****&loja=**&pdv=" << contagem );

would like to put pdv = variable count, to run in various automatic box.

<< count ); this way is not working.

Thank you.

  • Hello William, welcome to Sopt! If possible try to detail your doubt better, especially in this paragraph, got confused: would like to put pdv = the variable count, to run in various automatic box. << count ); this way is not working.. What is your experience with C++? I recommend a minimal experience, mainly because it is this language ;)

  • I am now learning the language c++, I would like that whenever running the program the post of Curl was with a different pdv value a sequence of 5 to 15

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.