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

Show:
Michael Offner
October 10, 2016, 11:58 AM
Michael Offner
October 10, 2016, 11:59 AM

i did adapt your changes with minor changes, thanks.

Fixed

Assignee

Michael Offner

Reporter

Matt Levine

Priority

New

Labels

Fix versions

Affects versions

Configure