PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WEBDEV 2024 → How to return a result in an http post page?
How to return a result in an http post page?
Iniciado por Gautam, 12,oct. 2017 20:17 - No hay respuesta
Miembro registrado
67 mensajes
Publicado el 12,octubre 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