I saw sample with Ajax on nsbasic but it does not work normal http post and get. I really really really want to do just basic post and get http. I had web http written in the back as Delphi and C++. Been trying for months without success.
It’s difficult to help if you don’t tell us what you try and what actually happens.
I copy this code for sending data to normal CGI Http to get response back
If req.status=200 Then 'success
and on Delphi side I just write back the response
procedure TWebModule1.WebModule1DefaultHandlerAction(Sender: TObject;
Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
Response.Content := ‘Return data:’+Request.QueryFields.Values[‘code’];
it works in a normal browser just return what is type in as parameter and back
as http://localhost:8080/?code=22394929 but it didn’t return anything.
Perhaps NSBasic users who also know or use Delphi could tell me what is missing.
Have a look at what is being returned in
req on failure. Is there an error message of some sort?
I got the same error same as another upcoming post of Error Undefine for AJAX.
Check out the response here: