PDA

View Full Version : Trouble sending request with QHttp



WinchellChung
27th June 2007, 14:45
I'm trying to send some simple logging information with QHttp.

Say if you type the following into your favorite web browser the logging will operate properly



http://www.myCompany.com/myApp/myAppIns.php?source=xxx&object=yyyy

I tried the following but it does not seem to work:



QHttp theHttp(this);
theHttp.setHost("www.myCompany.com");
theHttp.get("/myApp/myAppIns.php?source=xxx&object=yyyy");

Any ideas of what I am doing wrong?

jacek
27th June 2007, 15:57
You create QHttp object on the stack, so it might go out of scope before the request gets processed.

WinchellChung
27th June 2007, 18:50
Thanks jacek, that was it!
I just knew it was some sort of stupid newbie mistake.