Actually, I implemented a Port Number in the function:
Now it retrieves the IPv4 address but it doesn't retrieve the IPv6 address. I believe my Raspberry Pico doesn't support IPv6 by default, I have to implement that as well.
Code:
std::string http_get(const std::string& domain, const int port, const std::string& parameters);
Statistics: Posted by picocpp — Sun Dec 15, 2024 6:15 pm