V
V
VirusesAnalystCoder2020-06-22 20:31:21
C++ / C#
VirusesAnalystCoder, 2020-06-22 20:31:21

Wininet. The request is not resubmitted, why?

Hello!
There is a class in C++ that describes how to send a request.
I use like this:

while(true) {
        Sleep(1000);
        HttpRequests http("api.***.org");
        string page = http.WstringToString(http.SendInetRequest(P_HTTPS, M_GET, L"/***" L""));
        MessageBox(NULL, page.c_str(), page.c_str(), MB_OK);
    }

I run the program, run the HTTPDebugger and see the first request.
Next, the messagebox with the code is displayed.
But after that, there are no more requests, and the same thing is displayed in the messagebox!
Why?
If necessary, I will provide the HttpRequests class itself.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VirusesAnalystCoder, 2020-06-22
@VirusesAnalystCoder

It's decided.
Sorry for the spam
The solution is simple:
InternetSetOption(0, 42, NULL, 0);
Just add this line.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question