PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → How to return a result in an http post page?
How to return a result in an http post page?
Débuté par Gautam, 12 oct. 2017 20:17 - Aucune réponse
Membre enregistré
67 messages
Posté le 12 octobre 2017 - 20:17
Hello all

How do you return a response in an http post page in webdev?

For example, I call a Test http post page as follows, the result is always blank. No error code is raised.

IF HTTPRequest("http://localhost/MYSITE_WEB/UK/PAGE_Test.awp") = true then
sResult = HTMLToText(HTTPGetResult(httpResult))
ELSE
Error(ErrorInfo(errFullDetails))
END


The Page_Test.awp page has only one line of code in the initialization section of the page as follows:

RESULT "This is the response"


What code should I write in the Page_Test.awp page so that the httpgetresult contains the "This is the response" result. Or perhaps I have to change something on httpgetresult statement?

It looks like something simple but I am totally lost!

What am I doing wrong?

Gautam