HandleSpecialURL POST

So, it’s been a while since I really dabbled with HandleSpecialURL and for the life of me cannot remember how to get the input of a form field which was submitted (via POST) to HandleSpecialURL. It is not contained in Request.Entity (where I thought it to be).

Request.GetParameter

Only works for GET requests.

I found a bug report which states the POST has been broken since v3 :-/

Well I’ve used it for POST parameters. The documentation also says it supports GET/POST.

The Request.Entity field has been broken yes.

Phillip & Matt, please try this out in the 2014r2 betas. I believe it’s been fixed there.

I have tested the post request and it is working on 2014R1, ONLY if you set the MIME header the value raw . I hope on coming 2014R2.1 to fix this bug.

@Antonis Vakondios - please try this in r2. If you are having trouble there, file a bug report right away as we’re already deep into the 2.1 beta cycle.

On 2014R2, it returns on Querystring. Is it normal ? Entity is empty.

File a bug report and supply a program showing how you are sending data to your app.

I’m thinking the GetParameter is still broken with it comes to retrieving fields submitted via the POST/PUT methods. I see the string in the Entity property but get when trying to GetParameter. GET works fine.

Entity property:

Dim email As String = Request.GetParameter("email")

email string is blank (length=0)

[quote=123426:@Scott Rich]I’m thinking the GetParameter is still broken with it comes to retrieving fields submitted via the POST/PUT methods. I see the string in the Entity property but get when trying to GetParameter. GET works fine.

Entity property:

Dim email As String = Request.GetParameter("email")

email string is blank (length=0)[/quote]
Right. This is the change that was made. We no longer parse the Entity for you. See https://forum.xojo.com/14715-handlespecialurl-in-2014r2-1

Thanx Greg. That works like a charm.