Greetings fellow AppGameKit users,
I am having trouble getting a response from the server,
Using the same PHP code that
Kevin Cross shows in his like thread.
HttpResponse::setCache(true);
HttpResponse::setContentType('text/plain');
HttpResponse::setData("wtf");
HttpResponse::send();
I am finally getting a response, but it is a null value.
Is there something else that needs to be done?
Any help would be greatly appreciated.
EDIT
Has anyone else tried using the
example code in the documentation for this lately ??
I get unexpected results, and it is difficult fully understanding without seeing what is on the server's end. (unless it is just a web page we are supposed to retrieve instead of displaying)
Seems all of these are pages not found at that.
So, I tried a valid webpage that does exist, and saved that
response$ as a file to examine more than just the first screen, and did find that the full web page is being returned. (the text for html display and not the hidden content such as the PHP script of course)
Still unconvinced that this is the intention, but I think I may be able to work around my problem now, so it is all good.
Will try saving the information as a plain text file on the server without any frills, and I just might get the response I am looking for when calling that file directly instead of having the server send it back via the PHP script.
That would actually be better than I was expecting, so maybe I was just confused about how to use this command.
Thanks anyway, and sorry for the minutes you spent reading this that you can ever get back. lol (wasting time was not intentional)
If anyone has anything to add on the subject though, please do....
Coding things my way since 1981 -- Currently using AppGameKit V2 Tier 1