PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → Webhook
Webhook
Débuté par Lukas, 01 sep. 2017 15:13 - 4 réponses
Posté le 01 septembre 2017 - 15:13
Hi,

How can I handle a Post Request to my dynamic page and read the entire body ?

I'm struggling around with pageparameter, but I'm unable to read the content of the post request.
Posté le 01 septembre 2017 - 20:03
Hi

as stated in the help:

myBuffer is buffer=pageparameter(paramBuffer)

I'm using this in WXReplication, and there is really nothing more to it.

If you have a specific problem, post your code and errors

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com


Le 9/1/2017 à 7:13 AM, Lukas a écrit :
Hi,

How can I handle a Post Request to my dynamic page and read the entire
body ?

I'm struggling around with pageparameter, but I'm unable to read the
content of the post request.
Posté le 02 septembre 2017 - 08:13
I found the problem, if you trying to read content with mime type application/json you have to specify pageparameter(1) instead of pageparameter(parambuffer).
Posté le 02 septembre 2017 - 23:59
Then you are NOT using post mode.

Le 9/2/2017 à 12:13 AM, Lukas a écrit :
I found the problem, if you trying to read content with mime type
application/json you have to specify pageparameter(1) instead of
pageparameter(parambuffer).
Posté le 22 juillet 2019 - 11:05
Et poutant si ! j'ai le meme problème avec les notifications PUSH des API rest outlook de Microsoft qui appelle bien ma page avec un content-type application/json et le pageparametre(parambuffer) etait vide.... en utilisant pageparametre(1) j'ai bien le contenu avec un caractére en plus a la fin ("=") que j'enlève pour avoir une chaine JSON valide.

Bizarre le comportement de webdev sur ce point.