Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-2222

Adding a Content-length header when posting XML isn't working anymore.

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.2.002
    • Fix Version/s: 4.1.0.002, 4.0.3.003
    • Labels:
      None

      Description

      I think railo 4 now adds its own content-length headers or changed it behavior. This code started failing when switching from railo 3 to 4.

      <cfscript>
      x='<?xml version="1.0"?><methodCall><methodName>weblogUpdates.extendedPing</methodName><params><param><value>Blog</value></param><param><value>http://www.getrailo.org/</value></param><param><value>http://www.getrailo.org/</value></param><param><value>http://www.getrailo.org/</value></param> </params></methodCall>';
      </cfscript>
      <cfhttp method="POST" url="http://blogsearch.google.com/ping/RPC2">
      <cfhttpparam type="HEADER" name="Content-length" value="#len#"/>
      <cfhttpparam type="XML" value="#x#"/>
      </cfhttp>
      <Cfdump var="#cfhttp#"> - Invalid mime type

      • It works if I remove
        <cfhttpparam type="HEADER" name="Content-length" value="#len#"/>

      I believe it was required for me to set content-length in previous versions.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                skyflare Bruce Kirkpatrick
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: