I am trying to read the content of a PHP / HTML file on a remote web server using C++, but haven’t found a way to do it. I want to pass GET statements to it, so http://example.com/login.php?user=abc&password=def.
How would I do it?
I am trying to read the content of a PHP / HTML file on
Share
Your best bet is to use an external library. libcurl is popular and fairly easy to use.
Here’s a simple example, you need to add error checking though:
Your callback would look something like this:
You can add your
GETparameters on the end of the URL.