http.setMethod('put') does not send variables set with http.addParam(type='form')

Description

Http params set are not set when http.setMethod('put').

You can see it if your use

<cfscript>
function test(){
local.http = new http();
local.http.setMethod('put');
local.http.setURL('http://testdomain/formtest/');
local.http.addParam(type="formfield",name='email',value='test@test.com');
local.httpSendResult = local.http.send();
local.httpResult = httpSendResult.getPrefix();
return local.httpResult;
}

Writeoutput(test().filecontent);
</cfscript>

And then on the test domain use this to echo back any sent variables

<cfparam name="form" default="#structNew()#">
<cfoutput>#serializeJSON(form)#</cfoutput>

Environment

None

Activity

Michael Offner 
10 October 2016 at 11:59

i did adapt your changes with minor changes, thanks.

Fixed

Details

Assignee

Reporter

Priority

Labels

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 1 October 2016 at 05:17
Updated 24 October 2016 at 11:53
Resolved 10 October 2016 at 20:24