Feb 16, 2011 at 10:46pm UTC
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 Feb 16, 2011 at 10:48pm UTC
Feb 16, 2011 at 11:52pm UTC
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 Feb 16, 2011 at 11:56pm UTC
Feb 17, 2011 at 7:02am UTC
it compiled but still url dont connect !!!!
Feb 17, 2011 at 8:48am UTC
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.
Feb 17, 2011 at 2:56pm UTC
Print out the url and verify that it is correct.
Feb 17, 2011 at 5:03pm UTC
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
Feb 17, 2011 at 7:21pm UTC
If the url is printing out correctly, it's all on you. Good luck.
Feb 17, 2011 at 7:34pm UTC
thanks moorecm !!!
i confirm that is e dreambox plugin running in enigma box