Groovy Modules
  1. Groovy Modules
  2. GMOD-137

URLENC response entity parsing fails when content-type is not application/x-www-form-urlencoded

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: HTTPBuilder-0.5.0
    • Fix Version/s: HTTPBuilder-0.5.1
    • Component/s: HttpBuilder
    • Labels:
      None
    • Number of attachments :
      0

      Description

      URLENC parsing is done via URLEncodedUtils. Unfortunately, that method has a test to verify the content-type before parsing the data. HTTPBuilder already tests for the content-type, but wants to allow manually parsing a response even if the content-type is wrong (as in the case of Twitter's OAuth response.) So I need to fake a content-type if the response has it wrong.

      See: http://hc.apache.org/httpcomponents-client/httpclient/xref/org/apache/http/client/utils/URLEncodedUtils.html#117

        Activity

          People

          • Assignee:
            Thom Nichols
            Reporter:
            Thom Nichols
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: