program compiled but url not execute !!!

1
2
url = "http://host.host.com" + folder + "?server=" + server + "&code=" + code ;
connectionP = eHTTPConnection::doRequest(url.c_str(), eApp, &error);



program compiled but the url not executed !!!

and when i del "&code=" + code the url connect !!
how i can connect with the full url
Last edited on
You want std::string::operator+(). Try this:
url = std::string("http://host.host.com") + folder + "?server=" + server + "&code=" + code ;

String literals + std::string do not do what you'd expect (and they do compile).
Last edited on
it compiled but still url dont connect !!!!
If url has the right value (you verify it, right?) then the problem is with eHTTPConnection::doRequest or whatever you are using to know that it was unsuccessful.
Print out the url and verify that it is correct.
the url is correct and when i put it on internet browser i have result but in the program the plgin can't connect

this program is sample dreambox plugin
please waiting help!!!
If the url is printing out correctly, it's all on you. Good luck.
thanks moorecm !!!

i confirm that is e dreambox plugin running in enigma box
Topic archived. No new replies allowed.