Uploaded image for project: 'Lucee Development'
  1. LDEV-1020

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

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: 5.0.0.252, 4.5.3.018
    • Fix Version/s: 5.0.1.68, 4.5.4.016
    • Labels:

      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>

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              mattlevine Matt Levine
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: