Good day, I'm trying to call a java servlet from a C++ code. So far I've gotten to this:
execl( "/usr/bin/lynx", "lynx", "-dump", url.c_str(), (char *) 0);
where "url" is the url encoded string holding the address and parameters.
However I haven't found a way to let execl to return the servlet response in order for me to analyze it within the code. Is there an alternate more efficient way to calling a servlet and handling the answer?
Thank you!