Day 10/100 100 Days of Code

Info Hunter

I managed to find the root of the problem. The collection structure was not being created properly due to the following code:

size_t html_len = sizeof(html) - 1;

The size was not correct and I had to change it with the following:

std::string getHTML;

for (int i = 0; html[i] != '\0'; i++)
    {
        getHTML.push_back(html[i]);
    }

    size_t html_len = getHTML.length() - 1;

Now it works as it should! I still do not understand why it stopped working. I am glad that I managed to figure out a fix though. Now, the application runs